From 3b72284491f6f6a32a64127ca057081183584041 Mon Sep 17 00:00:00 2001 From: c-vetter Date: Thu, 2 May 2024 17:04:35 +0200 Subject: [PATCH] Update README.md, add note about @typescript-eslint --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 1d18a7a..042aaef 100644 --- a/README.md +++ b/README.md @@ -295,6 +295,15 @@ declare module '*.module.styl' { } ``` +#### @typescript-eslint not picking up global declarations +`@typescript-eslint` may require explicit typings even if you have global declarations in your library. +The full declaration above may clash in such a case. To make everything work together, just add something like this instead of the explicit declarations above: +```ts +/// +``` +That sample is for [vite](https://vitejs.dev). You need to use the proper path for your project. +You can find the correct path through your Editor if everything else works correctly. + ## Troubleshooting For troubleshooting and debugging, you can view the TypeScript Server Log in Visual Studio Code by entering `Typescript: Open TS Server log` in the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette).