From 872b67071288e69b3f6e75f43739db927174d3ae Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 22 Mar 2024 19:11:49 +0000 Subject: [PATCH] Workaround for unhappy TS --- packages/npm/openapi.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/npm/openapi.sh b/packages/npm/openapi.sh index 946aa2eb..423c7a60 100755 --- a/packages/npm/openapi.sh +++ b/packages/npm/openapi.sh @@ -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 \| undefined;/d" client-server.d.ts + rm "$api.d.ts.bak" + rm "$FILE" done