- toString<Input>(input: Input): Input extends Stringable ? `${Input}` : Input extends {
toString: (() => string);
} ? ReturnType<Input["toString"]> : string
-
Type Parameters
-
Input extends Stringable | {
toString: (() => string);
}
Returns Input extends Stringable ? `${Input}` : Input extends {
toString: (() => string);
} ? ReturnType<Input["toString"]> : string
Parses given value to string, if number is given, then that's used as a radix and a function is returned expecting an actual value.
Example
Returns
string or function expecting a value.