krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
17.89k stars 759 forks source link

Typings don't work for commonjs #518

Closed SvizelPritula closed 3 years ago

SvizelPritula commented 3 years ago

Describe the bug

When using commonjs syntax with require, Visual Studio Code doesn't load type declarations, since they correspond to the ESM distribution.

Version

6.4.3

Is this a regression?

No, it never worked to my knowladge

🔬Minimal Reproduction

  1. Create a new directory and open it in Visual Studio Code
  2. Add a main.js file
  3. Run npm init
  4. Write const Fuse = require('fuse.js'); into main.js
  5. Try to autocomplete anything, say new Fuse() parameters.

Additional context

None

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days