![The 'const' modifier can only be used in TypeScript files · Issue #297 · zero-to-mastery/book-tracker · GitHub The 'const' modifier can only be used in TypeScript files · Issue #297 · zero-to-mastery/book-tracker · GitHub](https://user-images.githubusercontent.com/65058877/175096784-835615fd-4e73-49a5-b7b4-2fe736de1376.png)
The 'const' modifier can only be used in TypeScript files · Issue #297 · zero-to-mastery/book-tracker · GitHub
The 'const' modifier can only be used in TypeScript files · Issue #297 · zero-to-mastery/book-tracker · GitHub
![A quick introduction to “Type Declaration” files and adding type support to your JavaScript packages | by Uday Hiwarale | JsPoint | Medium A quick introduction to “Type Declaration” files and adding type support to your JavaScript packages | by Uday Hiwarale | JsPoint | Medium](https://miro.medium.com/max/1200/1*c1NUprS-v5smNqXdtAPbsg.png)
A quick introduction to “Type Declaration” files and adding type support to your JavaScript packages | by Uday Hiwarale | JsPoint | Medium
![Type annotations can only be used in TypeScript files.ts(8010) on React-Native CLI Startup · Issue #29123 · facebook/react-native · GitHub Type annotations can only be used in TypeScript files.ts(8010) on React-Native CLI Startup · Issue #29123 · facebook/react-native · GitHub](https://user-images.githubusercontent.com/35485762/84629531-17ac7a00-af08-11ea-97aa-4d6bb5cabd56.png)
Type annotations can only be used in TypeScript files.ts(8010) on React-Native CLI Startup · Issue #29123 · facebook/react-native · GitHub
![The 'const' modifier can only be used in TypeScript files · Issue #297 · zero-to-mastery/book-tracker · GitHub The 'const' modifier can only be used in TypeScript files · Issue #297 · zero-to-mastery/book-tracker · GitHub](https://user-images.githubusercontent.com/65058877/175096772-177ed775-b558-4b52-99a2-3e02b1d0c7ca.png)
The 'const' modifier can only be used in TypeScript files · Issue #297 · zero-to-mastery/book-tracker · GitHub
![Couldn't resolve `'types' can only be used in a .ts file. Vetur(8010)` · Issue #1347 · vuejs/vetur · GitHub Couldn't resolve `'types' can only be used in a .ts file. Vetur(8010)` · Issue #1347 · vuejs/vetur · GitHub](https://user-images.githubusercontent.com/38882716/60612989-ef199600-9e04-11e9-948a-381d6c27e7f6.png)
Couldn't resolve `'types' can only be used in a .ts file. Vetur(8010)` · Issue #1347 · vuejs/vetur · GitHub
![javascript - Error: 'types' can only be used in a .ts file - Visual Studio Code using @ts-check - Stack Overflow javascript - Error: 'types' can only be used in a .ts file - Visual Studio Code using @ts-check - Stack Overflow](https://i.stack.imgur.com/SvosR.png)
javascript - Error: 'types' can only be used in a .ts file - Visual Studio Code using @ts-check - Stack Overflow
![visual studio code - "'public' can only be used in a .ts file" in typescript tslint react setup? - Stack Overflow visual studio code - "'public' can only be used in a .ts file" in typescript tslint react setup? - Stack Overflow](https://i.stack.imgur.com/nvUxm.png)
visual studio code - "'public' can only be used in a .ts file" in typescript tslint react setup? - Stack Overflow
!['import … =' can only be used in TypeScript files | Unexpected keyword or identifier |Declaration - YouTube 'import … =' can only be used in TypeScript files | Unexpected keyword or identifier |Declaration - YouTube](https://i.ytimg.com/vi/u2q54bfQVU8/mqdefault.jpg)
'import … =' can only be used in TypeScript files | Unexpected keyword or identifier |Declaration - YouTube
![javascript - Error: 'types' can only be used in a .ts file - Visual Studio Code using @ts-check - Stack Overflow javascript - Error: 'types' can only be used in a .ts file - Visual Studio Code using @ts-check - Stack Overflow](https://i.stack.imgur.com/vzC1Q.png)
javascript - Error: 'types' can only be used in a .ts file - Visual Studio Code using @ts-check - Stack Overflow
![Type aliases can be used only in a .ts file' error popping up in Flow enabled files · Issue #15171 · microsoft/vscode · GitHub Type aliases can be used only in a .ts file' error popping up in Flow enabled files · Issue #15171 · microsoft/vscode · GitHub](https://user-images.githubusercontent.com/1685700/28547570-55741cdc-7084-11e7-8856-dd1cc9a1726c.png)
Type aliases can be used only in a .ts file' error popping up in Flow enabled files · Issue #15171 · microsoft/vscode · GitHub
Type annotations can only be used in TypeScript files.ts(8010) on React-Native CLI Startup · Issue #29123 · facebook/react-native · GitHub
![visual studio code - "'public' can only be used in a .ts file" in typescript tslint react setup? - Stack Overflow visual studio code - "'public' can only be used in a .ts file" in typescript tslint react setup? - Stack Overflow](https://i.stack.imgur.com/ykbxU.png)
visual studio code - "'public' can only be used in a .ts file" in typescript tslint react setup? - Stack Overflow
![javascript - Error: 'types' can only be used in a .ts file - Visual Studio Code using @ts-check - Stack Overflow javascript - Error: 'types' can only be used in a .ts file - Visual Studio Code using @ts-check - Stack Overflow](https://i.stack.imgur.com/tMrjK.png)