krisk / Fuse

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

Usage in typescript without esModuleInterop #541

Closed some-user123 closed 3 years ago

some-user123 commented 3 years ago

Hi,

I'm trying to use this nice library in a typescript project.

I can only get it to work using esModuleInterop. Is there a way to import it without changing my compiler options?

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

some-user123 commented 3 years ago

Still an issue for me...

some-user123 commented 3 years ago

This bot seems broken...

p3drosola commented 3 years ago

I agree, this is an ongoing issue that could be easily resolved.

akphi commented 2 years ago

@krisk I want to bring up the point that now Typescript has supported esm style imports, esModuleInterop is not supported in this mode, it's worth if we do something like https://github.com/lukeed/clsx/pull/44 - I have given it an attempt but not quite sure how I can modify the d.ts file accordingly.