Closed mattmazzola closed 4 years ago
Previously matches had any type which wasn't helpful.
any
Example match when input is array of strings
{ "indices": [ [ 1, 1 ], [ 3, 3 ], [ 6, 12 ] ], "value": "anotherString" }
Example match when input is objects:
{ "indices": [ [ 1, 1 ], [ 3, 3 ], [ 6, 12 ] ], "value": "anotherString", "key": "name", "arrayIndex": 0 }
Ideally the matches should be consistent, but until: https://github.com/krisk/Fuse/issues/287 this should at least type the value and indices as most people will only want the indices.
value
indices
Seems https://github.com/krisk/Fuse/pull/301 is duplicate and doesn't account for key or arrayIndex being optional/undefined
key
arrayIndex
Previously matches had
any
type which wasn't helpful.Example match when input is array of strings
Example match when input is objects:
Ideally the matches should be consistent, but until: https://github.com/krisk/Fuse/issues/287 this should at least type the
value
andindices
as most people will only want the indices.