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

json-schema-to-ts

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-to-ts - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

3

lib/definitions/jsonSchema7.d.ts
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",

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