mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-25 03:54:10 +02:00
Workaround for unhappy TS
This commit is contained in:
parent
d4707f6c44
commit
872b670712
|
|
@ -18,6 +18,11 @@ for api in application-service client-server push-gateway server-server; do
|
||||||
--api "$api" \
|
--api "$api" \
|
||||||
-r "$RELEASE" \
|
-r "$RELEASE" \
|
||||||
-o "$FILE"
|
-o "$FILE"
|
||||||
|
|
||||||
yarn openapi-typescript "$FILE" --output "$api.d.ts"
|
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"
|
rm "$FILE"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue