ts-json-schema-generator
Advanced tools
Comparing version 0.12.0 to 0.13.0
@@ -14,3 +14,4 @@ "use strict"; | ||
const symbol = this.typeChecker.getSymbolAtLocation(node.exprName); | ||
return this.childNodeParser.createType(symbol.valueDeclaration.type, context); | ||
const valueDec = symbol.valueDeclaration; | ||
return this.childNodeParser.createType(valueDec.type ? valueDec.type : valueDec.initializer, context); | ||
} | ||
@@ -17,0 +18,0 @@ } |
{ | ||
"name": "ts-json-schema-generator", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "Generate JSON schema from your Typescript sources", | ||
@@ -45,3 +45,3 @@ "main": "dist/index.js", | ||
"ts-node": "^3.3.0", | ||
"typescript": "~2.5.2" | ||
"typescript": "~2.5.3" | ||
}, | ||
@@ -51,11 +51,11 @@ "devDependencies": { | ||
"@types/chai": "^4.0.4", | ||
"@types/commander": "^2.9.2", | ||
"@types/glob": "^5.0.32", | ||
"@types/commander": "^2.11.0", | ||
"@types/glob": "^5.0.33", | ||
"@types/json-stable-stringify": "^1.0.32", | ||
"@types/mocha": "^2.2.42", | ||
"@types/node": "^8.0.27", | ||
"ajv": "~5.2.2", | ||
"@types/mocha": "^2.2.43", | ||
"@types/node": "^8.0.41", | ||
"ajv": "~5.2.3", | ||
"chai": "~4.1.2", | ||
"mocha": "~3.5.0", | ||
"source-map-support": "~0.4.17", | ||
"mocha": "~4.0.1", | ||
"source-map-support": "~0.5.0", | ||
"tslint": "~5.7.0" | ||
@@ -62,0 +62,0 @@ }, |
@@ -47,1 +47,3 @@ # ts-json-schema-generator | ||
And connect via the debugger protocol. | ||
[AST Explorer](https://astexplorer.net/) is amazing for developers of this tool! |
17
test.ts
@@ -1,16 +0,3 @@ | ||
import { A } from "./external"; | ||
const FOO = "foo"; | ||
/** | ||
* Test | ||
* @hide | ||
*/ | ||
export type B = "a"; | ||
/** | ||
* More test | ||
*/ | ||
export type Enum = | ||
A | | ||
B | | ||
"c"; | ||
export type MyType = typeof FOO; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49
240986
3435
Updatedtypescript@~2.5.3