Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/typebox/src/typebox.ts>TTemplateLiteralUnion

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

Type Parameters

optional
Acc extends string = ""
definition: T extends [infer L, ...infer R] ? `${TTemplateLiteralConst<L, Acc>}${TTemplateLiteralUnion<Assert<R, TTemplateLiteralKind[]>, Acc>}` : Acc