Widens string, number, and boolean literal types to their primitive base; all other types pass through unchanged.
Literal or narrow type to widen.
type A = Widen<"hello">;// ^? stringtype B = Widen<42>;// ^? numbertype C = Widen<true>;// ^? boolean Copy
type A = Widen<"hello">;// ^? stringtype B = Widen<42>;// ^? numbertype C = Widen<true>;// ^? boolean
Widens string, number, and boolean literal types to their primitive base; all other types pass through unchanged.