WidenLiteral (Type)
Type Aliases
WidenLiteral<T>
type WidenLiteral<T>: T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends bigint ? bigint : T extends symbol ? symbol : T;
Helper type used to widen a const array to the corresponding base type.
Type Parameters
Type Parameter |
---|
T |