Closed hoonoh closed 2 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
bump.
I don't think the stale bot is functioning as expected. I would be happy to add a PR with types changed as:
export type FuseSortFunctionMatch = {
score: number
key: string | { // <- changes
path: string[]
id: string
weight: number
src: string
}
norm: number // <- changes
value: string
indices: ReadonlyArray<number>[]
}
...but I am not sure if this would introduce any side effects. Any thoughts?
Describe the bug
Typescript definition for
FuseSortFunctionMatch
seems invalid / outdated.For my use case the type definitions had to patched to:
Version
6.5.3
🔬Minimal Reproduction
The setup I used:
Additional context
I was trying to add custom sort function which needs to check the key value and found out it was not string but an object. I am not sure if the sortFn argument's key can be a string in a different setup.