typescript-json-schema
Advanced tools
Comparing version 0.38.3 to 0.39.0
@@ -177,2 +177,3 @@ "use strict"; | ||
assertSchema("any-unknown", "MyObject"); | ||
assertSchema("never", "Never"); | ||
}); | ||
@@ -179,0 +180,0 @@ describe("class and interface", function () { |
@@ -569,2 +569,6 @@ "use strict"; | ||
var props = this.tc.getPropertiesOfType(clazzType).filter(function (prop) { | ||
var propertyType = _this.tc.getTypeOfSymbolAtLocation(prop, node); | ||
if (ts.TypeFlags.Never === propertyType.getFlags()) { | ||
return false; | ||
} | ||
if (!_this.args.excludePrivate) { | ||
@@ -571,0 +575,0 @@ return true; |
{ | ||
"name": "typescript-json-schema", | ||
"version": "0.38.3", | ||
"version": "0.39.0", | ||
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources", | ||
@@ -5,0 +5,0 @@ "main": "dist/typescript-json-schema.js", |
@@ -714,2 +714,7 @@ import * as glob from "glob"; | ||
const props = this.tc.getPropertiesOfType(clazzType).filter(prop => { | ||
// filter never | ||
const propertyType = this.tc.getTypeOfSymbolAtLocation(prop, node); | ||
if (ts.TypeFlags.Never === propertyType.getFlags()) { | ||
return false; | ||
} | ||
if (!this.args.excludePrivate) { | ||
@@ -716,0 +721,0 @@ return true; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2758
180711
20