nextapps-de / flexsearch

Next-Generation full text search library for Browser and Node.js
Apache License 2.0
12.53k stars 491 forks source link

Correct type for search #189

Closed yaneq closed 3 years ago

yaneq commented 4 years ago

Synchronous search does not return a Promise, this PR reflects that in the types.

ts-thomas commented 3 years ago

The typescript definition file of the new version >= 0.7.0 need some migration. I've reduced the amount of variations of all parameters in this new version . Hopefully this will simplify the typescript definition file. If you like you can check your changes against the new version and add them as a new PR. Thanks a lot!