Type alias Strigifiable

Strigifiable: Exclude<Primitive, symbol>

Values that can be stringified.

Remarks

Type to represent all values that can be stringified, all primitives excluding symbol: string, number, bigint, boolean, undefined, and null.

Example

let value: Strigifiable = "hello";
value = 1;
value = true;
value = Symbol("hello"); // Error!
value = { toString: () => "hello" }; // Error!

See

Primitive