Type Alias ToString<T>

ToString: T extends string ? T : `${T}` & string

Converts a value to a string, trying to preserve the narrow type.

Type Parameters