typescript-json-schema
Advanced tools
Comparing version 0.50.0 to 0.50.1
@@ -150,3 +150,4 @@ # typescript-json-schema test examples | ||
externalRefOverride: MySubObject; | ||
}``` | ||
} | ||
``` | ||
@@ -248,3 +249,4 @@ | ||
b: unknown; | ||
}``` | ||
} | ||
``` | ||
@@ -1522,3 +1524,4 @@ | ||
myFunction: Function; | ||
}``` | ||
} | ||
``` | ||
@@ -1525,0 +1528,0 @@ |
@@ -115,4 +115,4 @@ import * as ts from "typescript"; | ||
export declare function buildGenerator(program: ts.Program, args?: PartialArgs, onlyIncludeFiles?: string[]): JsonSchemaGenerator | null; | ||
export declare function generateSchema(program: ts.Program, fullTypeName: string, args?: PartialArgs, onlyIncludeFiles?: string[]): Definition | null; | ||
export declare function generateSchema(program: ts.Program, fullTypeName: string, args?: PartialArgs, onlyIncludeFiles?: string[], externalGenerator?: JsonSchemaGenerator): Definition | null; | ||
export declare function programFromConfig(configFileName: string, onlyIncludeFiles?: string[]): ts.Program; | ||
export declare function exec(filePattern: string, fullTypeName: string, args?: Args): Promise<void>; |
@@ -1218,5 +1218,5 @@ "use strict"; | ||
exports.buildGenerator = buildGenerator; | ||
function generateSchema(program, fullTypeName, args, onlyIncludeFiles) { | ||
function generateSchema(program, fullTypeName, args, onlyIncludeFiles, externalGenerator) { | ||
if (args === void 0) { args = {}; } | ||
var generator = buildGenerator(program, args, onlyIncludeFiles); | ||
var generator = externalGenerator !== null && externalGenerator !== void 0 ? externalGenerator : buildGenerator(program, args, onlyIncludeFiles); | ||
if (generator === null) { | ||
@@ -1223,0 +1223,0 @@ return null; |
{ | ||
"name": "typescript-json-schema", | ||
"version": "0.50.0", | ||
"version": "0.50.1", | ||
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources", | ||
@@ -53,3 +53,3 @@ "main": "dist/typescript-json-schema.js", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.2.3", | ||
"typescript": "~4.2.3", | ||
"yargs": "^16.2.0" | ||
@@ -56,0 +56,0 @@ }, |
@@ -87,2 +87,5 @@ # typescript-json-schema | ||
// generator can be also reused to speed up generating the schema if usecase allows: | ||
const schemaWithReusedGenerator = TJS.generateSchema(program, "MyType", settings, [], generator); | ||
// all symbols | ||
@@ -89,0 +92,0 @@ const symbols = generator.getUserSymbols(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
226223
3259
322
+ Addedtypescript@4.2.4(transitive)
- Removedtypescript@4.9.5(transitive)
Updatedtypescript@~4.2.3