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
Importing FromSchema slows VSCode's syntax check.
FromSchema
The text was updated successfully, but these errors were encountered:
@yoshi-68 Can you provide more details on your issue ? How did you use FromSchema ? What version ? etc.
Sorry, something went wrong.
experiencing same issue with generics:
Here is an example:
export class ApiSchema<IN extends JSONSchema, OUT extends JSONSchema> { readonly path: string; readonly requestSchema: IN; readonly responseSchema: OUT; readonly requestValidate; constructor(path: string, requestSchema: IN, responseSchema: OUT) { this.path = path; this.requestSchema = requestSchema; this.responseSchema = responseSchema; this.requestValidate = ajv.compile(requestSchema); } buildPostApi( handle: (requestBody: FromSchema<IN>, request: RequestEvent) => Promise<FromSchema<OUT>> ): (event: RequestEventAny) => Response | Promise<Response> { ... } }
@Seancheey this might be a bit old and maybe you've moved from it, but the docs in here helped me solve this: https://github.com/ThomasAribart/json-schema-to-ts/blob/main/documentation/FAQs/applying-from-schema-on-generics.md
They should be displayed more promptly!
No branches or pull requests
Importing
FromSchema
slows VSCode's syntax check.The text was updated successfully, but these errors were encountered: