Closed jonluca closed 2 years ago
closing in favor of #139
wow thanks for the work, but as mentioned in #141 - the simple - which is all we need - type testing in that pr would not work if we completely rewrite everything.
nice work though, good practice is never a waste of time :)
This is a PR that's born out of the previous fix - it didn't make sense to ship separate types, that were missing some options and had to be manually updated.
This rewrites the core logic with strongly typed typescript, and modernizes some of the code.
The build outputs both es3 and es2020, so this is fully backwards compatible.