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
Example files: a.ts
a.ts
export interface X { a: string; } export interface Y { x?: X; }
tsconfig.json
{ "compilerOptions": { "target": "es5", "module": "commonjs", "strict": true, "esModuleInterop": true } }
Command line: typescript-json-schema tsconfig.json "*" --required --ignoreErrors --refs --aliasRefs
typescript-json-schema tsconfig.json "*" --required --ignoreErrors --refs --aliasRefs
Generates
"X": { "$ref": "#/definitions/X" },
Possibly related to #246 as this will blow up the stack when used.
Possible workaround: specify as x: X | undefined instead of x?: X.
x: X | undefined
x?: X
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example files:
a.ts
tsconfig.json
Command line:
typescript-json-schema tsconfig.json "*" --required --ignoreErrors --refs --aliasRefs
Generates
Possibly related to #246 as this will blow up the stack when used.
Possible workaround: specify as
x: X | undefined
instead ofx?: X
.The text was updated successfully, but these errors were encountered: