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

x/typebox/src/typebox.ts>TTemplateLiteralConst

Json Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
type alias TTemplateLiteralConst
import { type TTemplateLiteralConst } from "https://deno.land/x/typebox@0.31.20/src/typebox.ts";

Type Parameters

T
Acc extends string
definition: T extends TUnion<infer U> ? [K in keyof U]: TTemplateLiteralUnion<Assert<[U[K]], TTemplateLiteralKind[]>, Acc>[number] : T extends TTemplateLiteral ? `${Static<T>}` : T extends TLiteral<infer U> ? `${U}` : T extends TString ? `${string}` : T extends TNumber ? `${number}` : T extends TBigInt ? `${bigint}` : T extends TBoolean ? `${boolean}` : never