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

x/typebox/src/typebox.ts>TRecordPropertiesFromUnionLiteral

JSON Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
type alias TRecordPropertiesFromUnionLiteral
import { type TRecordPropertiesFromUnionLiteral } from "https://deno.land/x/typebox@0.26.0-dev.1/src/typebox.ts";

Type Parameters

K extends TUnion<TLiteral<string | number>[]>
T extends TSchema
definition: Static<K> extends string ? [X in Static<K>]: T : never