We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This works
const x= {...} as const type T =FromSchema<typeof x>
but this doesnt
import x from "./my-schema.json" type T =FromSchema<typeof x>
is there something that can fix this? It would be much better for my usecase.
After some research, I think this would be needed to pass first: microsoft/TypeScript#32063
The text was updated successfully, but these errors were encountered:
Hi @CodeFromAnywhere !
As you've seen, this is an issue with TypeScript rather than json-schema-to-ts, there is a page in the FAQ about it: https://github.com/ThomasAribart/json-schema-to-ts/blob/main/documentation/FAQs/does-json-schema-to-ts-work-on-json-file-schemas.md
TL:DR: There's not much we can do for the moment, just a small workaround which is not ideal.
Sorry, something went wrong.
No branches or pull requests
This works
but this doesnt
is there something that can fix this? It would be much better for my usecase.
After some research, I think this would be needed to pass first: microsoft/TypeScript#32063
The text was updated successfully, but these errors were encountered: