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.
Relates to #613
Fixes typing on
FuseSortFunctionMatch
, mainly onkey
&indices
attribute. I included typings test which triggerssearchFn
with and withoutincludeMatches
option, which when undefined, theindices
attribute type is also undefined. I am not sure if this change should bring any side effects, or if the typing onFuseSortFunctionMatch
should be different when Fuse constructor is given different option combinations from the ones in the added tests.