Closed mon-jai closed 1 year ago
hi @mon-jai - thanks for the feedback.
At this point, changing the API seems a bit risky ...
Have handled this by improving the README and adding examples.
If you have more examples feel free to open a PR :)
Maybe we can change it in the next major release?
hm well personally Id rather leave it, as changing will alter the API for some users, and it could cause more problems/disruption than it solves. Also there are more important issues…
But if you think its important, you could try fixing it and open a PR …
The default export for this package is not a function, as documented, but an object with its
default
key pointing to a function.Maybe there is something wrong with
tsconfig.json
.Minimal reproducible example
CodeSandbox: https://codesandbox.io/p/sandbox/intelligent-fast-57i5c2
Code:
Output: