json-schema-to-ts
Advanced tools
Comparing version 2.0.0 to 2.0.1
import { JSONSchema7 as $JSONSchema7 } from "json-schema"; | ||
export declare type JSONSchema7 = boolean | (Omit<$JSONSchema7, "const" | "enum" | "items" | "additionalItems" | "contains" | "properties" | "patternProperties" | "additionalProperties" | "dependencies" | "propertyNames" | "if" | "then" | "else" | "allOf" | "anyOf" | "oneOf" | "not" | "definitions"> & { | ||
export declare type JSONSchema7 = boolean | (Omit<$JSONSchema7, "const" | "enum" | "items" | "additionalItems" | "contains" | "properties" | "patternProperties" | "additionalProperties" | "dependencies" | "propertyNames" | "if" | "then" | "else" | "allOf" | "anyOf" | "oneOf" | "not" | "definitions" | "examples"> & { | ||
const?: unknown; | ||
@@ -25,2 +25,3 @@ enum?: unknown; | ||
}; | ||
examples?: unknown[]; | ||
}); |
@@ -10,3 +10,3 @@ import { M } from "ts-algebra"; | ||
*/ | ||
export declare type JSONSchema7 = $JSONSchema7 | Readonly<Extract<$JSONSchema7, O.Object>>; | ||
export declare type JSONSchema7 = $JSONSchema7 | Readonly<$JSONSchema7>; | ||
/** | ||
@@ -13,0 +13,0 @@ * Unwidened JSON schema (e.g. defined with the `as const` statement) |
{ | ||
"name": "json-schema-to-ts", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Infer typescript types from your JSON schemas!", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.d.ts", |
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
43620
407