Skip to content

TypeAlias.StringToUnion

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

umt / StringToUnion

Type Alias: StringToUnion<S>

StringToUnion<S> = S extends `${infer F}${infer R}` ? F | StringToUnion<R> : never

Defined in: types/logic/stringToUnion.ts:2

Type Parameters

S

S extends string

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally