Closed BenJenkinson closed 2 years ago
Created a duplicate pull request before finding this one. Agreed!
This would fix #650
Haha I was also too hurried.
I repeat here for the maintainers: FYI you may be interested in built-in Partial
type to automatically flag all properties to be optional.
Fixed in latest.
The
fieldNormWeight
config option has a default value of1
, and can therefore be optional (like the other config options)https://github.com/krisk/Fuse/blob/a9e00804497a1bfd7a94040520417825c085c945/src/core/config.js#L58-L59
Related issues
Was this a regression?
fieldNormWeight
was valid in <= 6.5.3 (though only because it was missing from the type definition), and is now unnecessarily required in 6.6.0