Skip to content

Missing TypeScript declarations for fuse.js/worker #828

Description

@erbeto

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

Fuse.js version: 7.4.0

fuse.js/worker is documented and works at runtime, but there are no corresponding TypeScript declarations. The published fuse.d.ts contains declarations for the main API but not for FuseWorker, causing TypeScript to fail with:

Cannot find module 'fuse.js/worker' or its corresponding type declarations.

The Fuse.js version where this bug is happening.

6.6.2

Is this a regression?

  • This is a regression bug

Which version did this behavior use to work in?

None

Steps To Reproduce

  • install fuse.js 7.4.0
  • import worker API

Expected behavior

The documented import should work in TypeScript projects without requiring custom declarations.

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions