Skip to main content
Module

x/json_schema_to_ts/index.js>ExtendedJSONSchema

Infer TS types from JSON schemas 📝
Latest
type alias ExtendedJSONSchema
import { type ExtendedJSONSchema } from "https://deno.land/x/json_schema_to_ts@v3.1.0/index.js";
definition: boolean | (Readonly<{ [$JSONSchema]?: $JSONSchema; $id?: string | undefined; $ref?: string | undefined; $schema?: string | undefined; $comment?: string | undefined; type?: JSONSchemaType | readonly JSONSchemaType[]; const?: unknown; enum?: unknown; multipleOf?: number | undefined; maximum?: number | undefined; exclusiveMaximum?: number | undefined; minimum?: number | undefined; exclusiveMinimum?: number | undefined; maxLength?: number | undefined; minLength?: number | undefined; pattern?: string | undefined; items?: ExtendedJSONSchema<EXTENSION> | readonly ExtendedJSONSchema<EXTENSION>[]; additionalItems?: ExtendedJSONSchema<EXTENSION>; contains?: ExtendedJSONSchema<EXTENSION>; maxItems?: number | undefined; minItems?: number | undefined; uniqueItems?: boolean | undefined; maxProperties?: number | undefined; minProperties?: number | undefined; required?: readonly string[]; properties?: Readonly<Record<string, ExtendedJSONSchema<EXTENSION>>>; patternProperties?: Readonly<Record<string, ExtendedJSONSchema<EXTENSION>>>; additionalProperties?: ExtendedJSONSchema<EXTENSION>; dependencies?: Readonly<Record<string, ExtendedJSONSchema<EXTENSION> | readonly string[]>>; propertyNames?: ExtendedJSONSchema<EXTENSION>; if?: ExtendedJSONSchema<EXTENSION>; then?: ExtendedJSONSchema<EXTENSION>; else?: ExtendedJSONSchema<EXTENSION>; allOf?: readonly ExtendedJSONSchema<EXTENSION>[]; anyOf?: readonly ExtendedJSONSchema<EXTENSION>[]; oneOf?: readonly ExtendedJSONSchema<EXTENSION>[]; not?: ExtendedJSONSchema<EXTENSION>; format?: string | undefined; contentMediaType?: string | undefined; contentEncoding?: string | undefined; definitions?: Readonly<Record<string, ExtendedJSONSchema<EXTENSION>>>; title?: string | undefined; description?: string | undefined; default?: unknown; readOnly?: boolean | undefined; writeOnly?: boolean | undefined; examples?: readonly unknown[]; nullable?: boolean; }> & Readonly<Partial<EXTENSION>>)