plantain-00/type-coverage

ts-plugin-type-coverage reports each any type several times

Closed this issue · 2 comments

danvk commented

Version (if relevant): 2.26.3

Environment (if relevant):

TypeScript 5.2.2

VS Code Version: 1.82.1 (Universal)
Commit: 6509174151d557a81c9d0b5f8a5a1e9274db5585
Date: 2023-09-08T08:49:32.930Z
Electron: 25.8.0
ElectronBuildId: 23503258
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.6.0

Code(if relevant):

(I don't think it's relevant)

Expected:

I'd expect to see each any type mentioned once in the hover state in VS Code. At first I saw the message twice per any. Now it's up to three. Maybe four will be next?

The project is here: https://github.com/refstudio/refstudio/tree/002866a1d5185950ebd110f8ff85d78cf9490f50
My only change was to install type-coverage and ts-plugin-type-coverage and add the following to tsconfig.json:

    "plugins": [
      {
        "name": "ts-plugin-type-coverage",
        "strict": true, // for all configurations, see LintOptions above
        "ignoreCatch": true,
      }
    ]

Love the tool, btw! The plugin feels like having X-ray vision for any types.

Actual:

image

It should be fixed in v2.26.4

danvk commented

Fix confirmed. Thanks for the speedy turnaround @plantain-00!