Type alias StringifyPrimitive<P>

StringifyPrimitive<P>: `${P}`

Turns a given primitive value (except symbol) into its string representation

Type Parameters

Example

StringifyPrimitive<45> //  "45"
StringifyPrimitive<boolean> // "false" | "true"
StringifyPrimitive<null> // "null"
StringifyPrimitive<undefined> // "undefined"