from-schema
Version:
Infer TypeScript types from JSON schemas
10 lines (8 loc) • 318 B
TypeScript
import { SchemaBase } from '../generic';
import { JsonSchemaOrPrimitive } from './JsonSchemaOrPrimitive';
export type IntersectionJsonSchema = SchemaBase & {
readonly allOf: readonly JsonSchemaOrPrimitive[];
readonly description?: string;
readonly default?: unknown;
readonly examples?: unknown[];
};