ts-json-schema-generator
ts-json-schema-generator copied to clipboard
Generate JSON schema from your Typescript sources
## Summary ts-json-schema-generator fails to parse types from declaration files (`*.d.ts`). ## Repro With the following minimal repro: ```ts // declaration.d.ts declare type Model = string; ``` ```ts // ForgeElementOverlay.ts...
Partially closes #2233 --- When a type alias with generic parameters ultimately resolves to a purely structural type (no remaining type-parameters, no public reusable symbol), emitting it as a separate...
Hi! At the moment, when an **exported** type is a union of **other exported literal-only unions**, the generator emits a separate definition for each constituent type and then references them...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.15.30 to 24.0.3. Commits See full diff in compare view Most Recent Ignore Conditions Applied to This Pull Request | Dependency Name | Ignore Conditions | |...
fix https://github.com/vega/ts-json-schema-generator/issues/2272
Seems like a very simple repro: Simpler repro: ```ts export type SomeType = { foo: NonNullable } ``` ```json { "$ref": "#/definitions/RelaxedMatchedHeadline", "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "RelaxedMatchedHeadline": { "properties": {...
### TL;DR * When `--additional-properties` is true, any helper that contains `TBase[K] /* where K ∈ keyof TBase */` inside a **mapped type** crashes the generator with ``` LogicError: Unexpected...
minimal reproduction: remove parameter type in test case https://github.com/vega/ts-json-schema-generator/blob/53c8da283a78cc15c286b45173580444b762b212/test/valid-data/function-parameters-default-value/main.ts#L1  run case  i found parameter node.type is undefined in this case  maybe we should get type by SymbolObject...
`ts-json-schema-generator` would be a tool that would greatly benefit from a faster execution time. With TS being ported to GO until it gets released as a go-only tool, I don't...