Skip to content

TypeAlias.BuildTemplateLiteral

github-actions[bot] edited this page Jul 8, 2026 · 30 revisions

umt / BuildTemplateLiteral

Type Alias: BuildTemplateLiteral<Parts>

BuildTemplateLiteral<Parts> = Parts extends readonly [infer Head, ...(infer Tail extends readonly TemplateLiteralPart[])] ? `${Extract<PartToTemplate<Head>, string | number | bigint | boolean>}${BuildTemplateLiteral<Tail>}` : ""

Defined in: Validate/templateLiteral/core.ts:51

Builds the template literal type produced by joining Parts. Each part is mapped to either its literal string value or to the runtime type that the corresponding validator accepts.

Type Parameters

Parts

Parts extends readonly TemplateLiteralPart[]

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally