T
LiteralUnion
A string union that keeps T's literals for autocomplete while still accepting any other string,
for Discord's open-ended enums (typography variants, colour tokens, sizes).
type LiteralUnion<T extends string> = T | string & {}A string union that keeps T's literals for autocomplete while still accepting any other string,
for Discord's open-ended enums (typography variants, colour tokens, sizes).
type LiteralUnion<T extends string> = T | string & {}