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.58.1 to 0.59.0

14

api.md

@@ -1914,2 +1914,16 @@ _Auto-generated file. Updated with NPM deploy. Update manually with 'yarn docs'._

## [type-literals](./test/programs/type-literals)
```ts
type MyObject = {
param1: "1" | "2" | "3";
param2: "1" | "2" | 3 | true;
/** @enum {string} */
param3: "1" | "2" | "3";
/** @enum {unknown} */
param4: "1" | "2" | 3 | true;
};
```
## [type-mapped-types](./test/programs/type-mapped-types)

@@ -1916,0 +1930,0 @@

14

dist/typescript-json-schema.d.ts

@@ -5,6 +5,6 @@ import * as ts from "typescript";

export declare function getDefaultArgs(): Args;
export declare type ValidationKeywords = {
export type ValidationKeywords = {
[prop: string]: boolean;
};
export declare type Args = {
export type Args = {
ref: boolean;

@@ -33,6 +33,6 @@ aliasRef: boolean;

};
export declare type PartialArgs = Partial<Args>;
export declare type PrimitiveType = number | boolean | string | null;
declare type RedefinedFields = "items" | "additionalItems" | "contains" | "properties" | "patternProperties" | "additionalProperties" | "dependencies" | "propertyNames" | "if" | "then" | "else" | "allOf" | "anyOf" | "oneOf" | "not" | "definitions";
export declare type DefinitionOrBoolean = Definition | boolean;
export type PartialArgs = Partial<Args>;
export type PrimitiveType = number | boolean | string | null;
type RedefinedFields = "items" | "additionalItems" | "contains" | "properties" | "patternProperties" | "additionalProperties" | "dependencies" | "propertyNames" | "if" | "then" | "else" | "allOf" | "anyOf" | "oneOf" | "not" | "definitions";
export type DefinitionOrBoolean = Definition | boolean;
export interface Definition extends Omit<JSONSchema7, RedefinedFields> {

@@ -67,3 +67,3 @@ propertyOrder?: string[];

}
export declare type SymbolRef = {
export type SymbolRef = {
name: string;

@@ -70,0 +70,0 @@ typeName: string;

@@ -28,3 +28,3 @@ "use strict";

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -728,3 +728,6 @@ if (y = 0, t) op = [op[0] & 2, t.value];

for (var k in schemas[0]) {
if (schemas[0].hasOwnProperty(k) && !definition.hasOwnProperty(k)) {
if (schemas[0].hasOwnProperty(k)) {
if (k === "description" && definition.hasOwnProperty(k)) {
continue;
}
definition[k] = schemas[0][k];

@@ -731,0 +734,0 @@ }

{
"name": "typescript-json-schema",
"version": "0.58.1",
"version": "0.59.0",
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources",

@@ -5,0 +5,0 @@ "main": "dist/typescript-json-schema.js",

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