typescript-json-schema
Advanced tools
Comparing version 0.33.0 to 0.34.0
{ | ||
"name": "typescript-json-schema", | ||
"version": "0.33.0", | ||
"version": "0.34.0", | ||
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources", | ||
@@ -5,0 +5,0 @@ "main": "typescript-json-schema.js", |
@@ -579,3 +579,3 @@ "use strict"; | ||
var modifierFlags = ts.getCombinedModifierFlags(node); | ||
if (modifierFlags & ts.ModifierFlags.Abstract) { | ||
if (modifierFlags & ts.ModifierFlags.Abstract && this.inheritingTypes[fullName]) { | ||
var oneOf = this.inheritingTypes[fullName].map(function (typename) { | ||
@@ -582,0 +582,0 @@ return _this.getTypeDefinition(_this.allSymbols[typename]); |
@@ -157,3 +157,3 @@ import * as glob from "glob"; | ||
if (typ.flags & ts.TypeFlags.StringLiteral) { | ||
return str; | ||
return str as string; | ||
} else if (typ.flags & ts.TypeFlags.BooleanLiteral) { | ||
@@ -164,3 +164,3 @@ return (typ as any).intrinsicName === "true"; | ||
const num = parseFloat(str as string); | ||
return isNaN(num) ? str : num; | ||
return isNaN(num) ? str as string : num; | ||
} else if (typ.flags & ts.TypeFlags.NumberLiteral) { | ||
@@ -728,3 +728,3 @@ return parseFloat(str as string); | ||
if (modifierFlags & ts.ModifierFlags.Abstract) { | ||
if (modifierFlags & ts.ModifierFlags.Abstract && this.inheritingTypes[fullName]) { | ||
const oneOf = this.inheritingTypes[fullName].map((typename) => { | ||
@@ -1083,3 +1083,3 @@ return this.getTypeDefinition(this.allSymbols[typename]); | ||
let diagnostics: Array<ts.Diagnostic> = []; | ||
let diagnostics: ReadonlyArray<ts.Diagnostic> = []; | ||
@@ -1086,0 +1086,0 @@ if (!args.ignoreErrors) { |
Sorry, the diff of this file is not supported yet
189432