Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

satisfies does not properly enforce enum on SomeJTDSchemaType #2206

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sinderw
Copy link

@sinderw sinderw commented Jan 25, 2023

What issue does this pull request resolve?

Closes #2205

What changes did you make?

Made the type of string enums readonly in SomeJTDSchemaType

Also documented the use of JTDDataType to extract types from schema, and the use of SomeJTDSchemaType to ensure a schema is properly formed before sending it to JTDDataType

Is there anything that requires more attention while reviewing?

This only impacts the typescript typings used in a way that was not documented before ; no impact on the result of the unit tests ; so I don't think so

@erikbrinkman
Copy link
Collaborator

@epoberezkin this seems good to me. It's so easy to forget readonly... Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Typescript 4.9 satisfies does not properly enforce enum on SomeJTDSchemaType
2 participants