Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/typebox_deno/src/typebox.ts>TKeyOf

JSON Schema Type Builder with Static Type Resolution for TypeScript
Latest
type alias TKeyOf
import { type TKeyOf } from "https://deno.land/x/typebox_deno@0.31.22/src/typebox.ts";

Type Parameters

optional
T extends TSchema = TSchema
definition: (T extends TRecursive<infer S> ? TKeyOfProperties<S> : T extends TIntersect ? TKeyOfProperties<T> : T extends TUnion ? TKeyOfProperties<T> : T extends TObject ? TKeyOfProperties<T> : T extends TTuple<infer K> ? TKeyOfIndices<K> : T extends TArray ? [TNumber] : T extends TRecord<infer K> ? [K] : []) extends infer R ? UnionType<AssertRest<R>> : never