UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

11 lines (10 loc) 522 B
import type { TSchema } from '../../type/schema/index'; import type { TRef } from '../../type/ref/index'; import type { TThis } from '../../type/recursive/index'; import { TypeBoxError } from '../../type/error/index'; export declare class TypeDereferenceError extends TypeBoxError { readonly schema: TRef | TThis; constructor(schema: TRef | TThis); } /** Dereferences a schema from the references array or throws if not found */ export declare function Deref(schema: TRef | TThis, references: TSchema[]): TSchema;