UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

12 lines (11 loc) 426 B
import type { TSchema, SchemaOptions } from '../schema/index.mjs'; import { Kind } from '../symbols/index.mjs'; export interface UnsafeOptions extends SchemaOptions { [Kind]?: string; } export interface TUnsafe<T> extends TSchema { [Kind]: string; static: T; } /** `[Json]` Creates a Unsafe type that will infers as the generic argument T */ export declare function Unsafe<T>(options?: UnsafeOptions): TUnsafe<T>;