Fuse
Fuse copied to clipboard
fix: FuseSortFunctionMatch typescript types
Relates to #613
Fixes typing on FuseSortFunctionMatch, mainly on key & indices attribute.
I included typings test which triggers searchFn with and without includeMatches option, which when undefined, the indices attribute type is also undefined.
I am not sure if this change should bring any side effects, or if the typing on FuseSortFunctionMatch should be different when Fuse constructor is given different option combinations from the ones in the added tests.
Thanks for the PR! Let me dig into this a bit more. Want to ensure there is no side effect.