UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

9 lines (8 loc) 333 B
import type { TSchema } from '../schema/index.mjs'; import { Kind } from '../symbols/index.mjs'; export interface TMappedKey<T extends PropertyKey[] = PropertyKey[]> extends TSchema { [Kind]: 'MappedKey'; static: T[number]; keys: T; } export declare function MappedKey<T extends PropertyKey[]>(T: [...T]): TMappedKey<T>;