Skip to content

FuseIndex type isn't exported in Fuse namespace #519

@yunyu

Description

@yunyu

Describe the bug

The type for FuseIndex isn't exported in the Fuse namespace

Version

6.4.1

Is this a regression?

No

🔬Minimal Reproduction

import { FuseIndex } from "fuse.js"

Additional context

This makes it impossible to type the result of Fuse.createIndex without actually calling the method (say, storing the value in a map or loading from disk).

A non-obvious workaround is to do:

ReturnType<Fuse<GenericArgument>["getIndex"]>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions