ts-json-schema-generator
ts-json-schema-generator copied to clipboard
feat: Add support for computed types on literals
This mirrors https://github.com/vega/ts-json-schema-generator/pull/746 in that it also adds support for computed types, however in this case it adds support for typescript types defined with the Type keyword vs Interface.
Before this change the newly added tests would fail because all of the keys would evaluate to __computed which is an internal Typescript value.
Since Type types use the TypeLiteralNodeParser parser under-the-hood, this updates that parser.
(This also eliminates an any cast)