WidenLiteral (Type)
Type Aliases
Section titled “Type Aliases”WidenLiteral
Section titled “WidenLiteral”type WidenLiteral<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends bigint ? bigint : T extends symbol ? symbol : T;Defined in: types/WidenLiteral.ts:2
Helper type used to widen a const array to the corresponding base type.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
