typescript-json-schema
Advanced tools
Comparing version 0.36.0 to 0.37.0
{ | ||
"name": "typescript-json-schema", | ||
"version": "0.36.0", | ||
"version": "0.37.0", | ||
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources", | ||
@@ -5,0 +5,0 @@ "main": "typescript-json-schema.js", |
@@ -686,3 +686,3 @@ "use strict"; | ||
var symbol = typ.getSymbol(); | ||
var isRawType = (!symbol || symbol.name === "Date" || symbol.name === "integer" || this.tc.getIndexInfoOfType(typ, ts.IndexKind.Number) !== undefined); | ||
var isRawType = (!symbol || this.tc.getFullyQualifiedName(symbol) === "Date" || symbol.name === "integer" || this.tc.getIndexInfoOfType(typ, ts.IndexKind.Number) !== undefined); | ||
var isStringEnum = false; | ||
@@ -979,3 +979,7 @@ if (typ.flags & ts.TypeFlags.Union) { | ||
delete options.declarationMap; | ||
var program = ts.createProgram(onlyIncludeFiles || configParseResult.fileNames, options); | ||
var program = ts.createProgram({ | ||
rootNames: onlyIncludeFiles || configParseResult.fileNames, | ||
options: options, | ||
projectReferences: configParseResult.projectReferences | ||
}); | ||
return program; | ||
@@ -982,0 +986,0 @@ } |
@@ -861,3 +861,3 @@ import * as glob from "glob"; | ||
// FIXME: We can't just compare the name of the symbol - it ignores the namespace | ||
const isRawType = (!symbol || symbol.name === "Date" || symbol.name === "integer" || this.tc.getIndexInfoOfType(typ, ts.IndexKind.Number) !== undefined); | ||
const isRawType = (!symbol || this.tc.getFullyQualifiedName(symbol) === "Date" || symbol.name === "integer" || this.tc.getIndexInfoOfType(typ, ts.IndexKind.Number) !== undefined); | ||
@@ -1189,3 +1189,7 @@ // special case: an union where all child are string literals -> make an enum instead | ||
const program = ts.createProgram(onlyIncludeFiles || configParseResult.fileNames, options); | ||
const program = ts.createProgram({ | ||
rootNames: onlyIncludeFiles || configParseResult.fileNames, | ||
options, | ||
projectReferences: configParseResult.projectReferences | ||
}); | ||
return program; | ||
@@ -1192,0 +1196,0 @@ } |
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
2462
164077