UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

10 lines (9 loc) 391 B
import type { TSchema } from '../schema/index'; import type { TProperties } from '../object/index'; import { Kind } from '../symbols/index'; export interface TMappedResult<T extends TProperties = TProperties> extends TSchema { [Kind]: 'MappedResult'; properties: T; static: unknown; } export declare function MappedResult<T extends TProperties>(properties: T): TMappedResult<T>;