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