* fix broken type inference
* enhance search definition
Split FuseResult into FuseResultWithMatches & FuseResultWithScore
* fix type of id, keys in FuserOptions
replace keyof T -> keyof T | string
object path like 'author.lastName' should be parmitted.
I copied these instructions from fusejs.io but chose to put NPM first;
NPM is the recommended installation method and Github users are
arguably more likely to use it than website-only users.
This fixes the typings for nested keys which was previously broken, and
reported by @mmajko on #261
While this does fix the typings at least for now, they can be made even
more ideal. To achieve this however advanced typings would be required
and a request has been made to the utility-types repository (see:
https://github.com/piotrwitek/utility-types/issues/85) for the required
advanced type. To summarize that issue, if we would have a Flatten<T>
that would flatten the entire given typing T to single keys it would be
a perfect match for this library.
* Cleanup build
Partial: Requires next commit for a proper version!
* Port tests to the Jest framework
* Fix typings and cover them in a test
This should resolve#261 as long as the system of the test is being used. That being said, this system allows for a fully typed configuration with IDE support
TypeScript usage is further described in the documentation, so please accept that PR if this one is accepted.
* Run standard-format
* Remove duplicate types field from package
* fix build production only!!
eval( ) problem on production!! csp unsafe
* revert build script
* fix main export .min build production
* fix dist production only mode