krisk / Fuse

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

Change fieldNormWeight to be optional #658

Closed kilakewe closed 2 years ago

kilakewe commented 2 years ago

I've started to notice a TS error saying that this property is required (by definition) but looking at the code, no other property is required.

I'm assuming this is a mistake since these have default values.

kilakewe commented 2 years ago

Just saw there's already an active PR for this issue.

hcharley commented 2 years ago

Just bumped into this as well.

krisk commented 2 years ago

Fixed in the latest version. Thanks all!