Name: typescript-to-json-schema
Description: Generate JSON schema from your Typescript sources
Created: 2017-02-01 09:02:33.0
Updated: 2017-09-13 02:10:34.0
Pushed: 2017-12-30 23:26:04.0
Homepage: null
Size: 82
Language: TypeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Inspired by YousefED/typescript-json-schema
. Here's the differences list:
typeChecker.getTypeAtLocation()
(so probably it keeps correct type aliases)class
typesdefinitions
section in the JSON schemainstall typescript-to-json-schema
de_modules/.bin/typescript-to-json-schema \
--path 'my/project/**.*.ts' \
--type 'My.Type.Full.Name' \
--expose 'export' \
--topRef 'yes' \
--jsDoc 'extended'
interface
typesenum
typesunion
, tuple
, type[]
typesstring
, boolean
, number
types"value"
, 123
, true
, false
, null
, undefined
literalstypeof
keyof
npm run debug -- test/programs/type-alias-single/main.ts --aliasRefs true MyString
And connect via the debugger protocol.
AST Explorer is amazing for developers of this tool!