Webstorm Typescript 4.1 Template Literal Types support

Hi!

I'm using the latest version of WebStorm, and I want to update our current project to Typescript 4.1 mainly for the Template Literal Types, yet when I update, WebStorm raises an "TS2693: 'Check' only refers to a type, but is being used as a value here.", when I try to define a template literal type, does WebStorm support this feature, and if it does, is there something that might prevent it from detecting that it is a template literal type?

 

Thanks in advance, have a nice day!

0
1 comment

TS2693 error comes from the Typescript compiler, not from the IDE. What is a result of running tsc in command line for your code? What Typescript version is configured in Settings | Languages & Frameworks | TypeScript, TypeScript:?

0

Please sign in to leave a comment.