Closed Andarist closed 1 week ago
fixes https://github.com/bluesky-social/atproto/issues/2952
I couldn't run codegen script for some reason so I didn't regenerate the output yet. I end up with:
codegen
> @atproto/api@0.13.15 codegen /Code/atproto/packages/api > node ./scripts/generate-code.mjs && lex gen-api --yes ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/* flex: can't open gen-api
This improves type safety by omitting only the desired literal keys when index signatures are present (leaving the index signatures in place!). You can see this in action in this TS playground
Thanks. I included something like this in https://github.com/bluesky-social/atproto/pull/2956
fixes https://github.com/bluesky-social/atproto/issues/2952
I couldn't run
codegen
script for some reason so I didn't regenerate the output yet. I end up with:This improves type safety by omitting only the desired literal keys when index signatures are present (leaving the index signatures in place!). You can see this in action in this TS playground