Answers for "type annotations can only be used in typescript files.javascript"

1

Type annotations can only be used in TypeScript files.

one solution can be to disable the typescript check. so inside the settings.json
add the below code line

"javascript.validate.enable": false
Posted by: Guest on December-25-2021

Code answers related to "type annotations can only be used in typescript files.javascript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language