@hoth/typescript-to-json-schema
Advanced tools
Comparing version 2.1.0-1 to 2.1.0-2
import { Schema, PropIterator } from './util'; | ||
export * from './translate/types'; | ||
export { Translate } from './translate'; | ||
export declare type numberic = string | number; | ||
@@ -25,1 +23,4 @@ export declare type integer = number; | ||
}): {}; | ||
export { Schema } from './util'; | ||
export * from './translate/types'; | ||
export { Translate } from './translate'; |
@@ -7,4 +7,2 @@ "use strict"; | ||
const util_1 = require("./util"); | ||
var translate_1 = require("./translate"); | ||
exports.Translate = translate_1.Translate; | ||
function getDefinitions(sourceFile, state, namespace) { | ||
@@ -128,2 +126,4 @@ const source = namespace || sourceFile; | ||
exports.mergeSchemas = mergeSchemas; | ||
var translate_1 = require("./translate"); | ||
exports.Translate = translate_1.Translate; | ||
//# sourceMappingURL=index.js.map |
@@ -16,2 +16,5 @@ "use strict"; | ||
} | ||
function isLibPath(filePath) { | ||
return filePath === '/node_modules/typescript/lib/lib.es5.d.ts'; | ||
} | ||
function checkRecursion(node) { | ||
@@ -274,2 +277,5 @@ var _a; | ||
} | ||
if (isLibPath(declaration.getSourceFile().getFilePath())) { | ||
return; | ||
} | ||
if (checkRecursion(node)) { | ||
@@ -276,0 +282,0 @@ return; |
@@ -6,3 +6,3 @@ import { Project } from 'ts-morph'; | ||
readonly project: Project; | ||
constructor(opts: TransOption); | ||
constructor(opts?: TransOption); | ||
getProject(): Project; | ||
@@ -9,0 +9,0 @@ generateSchema(entry: EntryNode, opts?: GenOption): Schema; |
{ | ||
"name": "@hoth/typescript-to-json-schema", | ||
"version": "2.1.0-1", | ||
"version": "2.1.0-2", | ||
"description": "typescript to json-schema transpiler", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
83011
17
1067