Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typescript-json-schema

Package Overview
Dependencies
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-json-schema - npm Package Compare versions

Comparing version 0.50.0 to 0.50.1

9

api.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc