You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, FuseSortFunctionItem is neither [key: string]: { $: string }, nor { $: string; idx: number }[].
Note that I am on v7.0.0, which I cannot select in the GitHub issue template dropdown. That said, I see the exact same output if I rollback to v6.6.2.
Edit: I've found other occurrences of broken types now, as well. It seems the FuseIndex type itself is wrong – it is missing records, docs, norm, etc. I would be very happy to help improve the typing if you are open to PRs!
Is there an existing issue for this?
Description of the bug
Just getting up and running with Fuse. It seems the type def for
FuseSortFunctionItem
is incorrect:If I log the output of
sortFn: (a, b) => ...
, I see:So,
FuseSortFunctionItem
is neither[key: string]: { $: string }
, nor{ $: string; idx: number }[]
.Note that I am on v7.0.0, which I cannot select in the GitHub issue template dropdown. That said, I see the exact same output if I rollback to v6.6.2.
Edit: I've found other occurrences of broken types now, as well. It seems the
FuseIndex
type itself is wrong – it is missingrecords
,docs
,norm
, etc. I would be very happy to help improve the typing if you are open to PRs!The Fuse.js version where this bug is happening.
6.6.2
Is this a regression?
Which version did this behavior use to work in?
None
Steps To Reproduce
Expected behavior
Correct types.
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: