UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

10 lines (9 loc) 223 B
import { CreateType } from '../create/type.mjs'; import { Kind } from '../symbols/index.mjs'; // prettier-ignore export function MappedKey(T) { return CreateType({ [Kind]: 'MappedKey', keys: T }); }