krisk / Fuse

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

[Typescript] fieldNormWeight is non-optional #650

Closed kejistan closed 2 years ago

kejistan commented 2 years ago

Describe the bug

IFuseOptions.fieldNormWeight is required, but the documentation suggests it should be optional.

Version

6.6.0

Is this a regression?

5.5.3 didn't include this option in the type

Additional context

https://github.com/krisk/Fuse/blob/3fe88cf26cd313d65085066f618127465913674e/src/index.d.ts#L255

krisk commented 2 years ago

Fixed in v6.6.1