@jsonjoy.com/json-type
Version:
High-performance JSON Pointer implementation
13 lines (12 loc) • 738 B
TypeScript
import type { Display } from './common';
import type { TExample, TType, WithValidator, Schema } from './schema';
export declare const validateDisplay: ({ title, description, intro }: Display) => void;
export declare const validateTExample: (example: TExample) => void;
export declare const validateTType: (tType: TType, kind: string) => void;
export declare const validateWithValidator: ({ validator }: WithValidator) => void;
export declare const validateMinMax: (min: number | undefined, max: number | undefined) => void;
/**
* Main router function that validates a schema based on its kind.
* This replaces the individual validateSchema() methods from type classes.
*/
export declare const validateSchema: (schema: Schema) => void;