What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-11-15 06:15:19
typescript convert an unknown to string
// To convert an unknown type into any other type we can use assertions let demo: unknown = 'Rice Krispies'; // The above line would throw an error as an unknown variable can // only take values of unknown and any type let demo: unknown = 'The EXTRA c... Add solution