Workaround for unhappy TS

This commit is contained in:
Michael Telatynski 2024-03-22 19:11:49 +00:00
parent d4707f6c44
commit 872b670712
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D

View file

@ -18,6 +18,11 @@ for api in application-service client-server push-gateway server-server; do
--api "$api" \
-r "$RELEASE" \
-o "$FILE"
yarn openapi-typescript "$FILE" --output "$api.d.ts"
# We remove these lines to workaround dodgy types
sed -i.bak "/\[key: string\]: Record<string, never> \| undefined;/d" client-server.d.ts
rm "$api.d.ts.bak"
rm "$FILE"
done