Answers for "typescript string to string literal"

0

typescript string to string literal

// stringLiteral is type of 'someString', not string
const stringLiteral = 'someString' as 'someString';
Posted by: Guest on October-04-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language