krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
17.77k stars 754 forks source link

Type mismatch on index.toJSON #622

Closed onhate closed 2 years ago

onhate commented 2 years ago

index.toJSON() type is defined as

toJSON(): {
   keys: ReadonlyArray<string>
   collection: FuseIndexRecords
}

but the response received is

{
  "keys": [
    ...
  ],
  "records": []
}
github-actions[bot] commented 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

onhate commented 2 years ago

Raised https://github.com/krisk/Fuse/pull/628 to fix this issue