type ParseString<T> = T extends string ? T : T extends string | number | boolean | null | undefined ? `${T}` : T extends bigint ? `${T}n` : never;Converts a type to a string.
| Type Parameter | Description |
|---|---|
|
|
The type to convert. |
The string representation of the type.
type Stringified = ParseString<11>; // '11'