krisk / Fuse

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

Default get function should be exported #542

Closed flakey-bit closed 3 years ago

flakey-bit commented 3 years ago

Description

The default get implementation should be added to module export & TypeScript typings (like createIndex)

So that can users can delegate to default implementation when overriding behaviour for one or two fields.

Workaround:

    import Fuse from 'fuse.js';
    const defaultGetFn = (Fuse as any).config.getFn as FuseGetFunction<any>;
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

flakey-bit commented 3 years ago

Not sure why this is being auto marked as stale.