typescript-runtime-type-benchmarks
typescript-runtime-type-benchmarks copied to clipboard
Add banditypes
Hey @moltar, thanks for the excellent infrastructure to benchmark validation performance, this saved me a lot of time! I went ahead of myself and added my library, banditypes. Turns out it's not only the smallest one, but also reasonably fast.
BTW if you aim for pinning exact versions of tested packages, why not add save-exact=true
to .npmrc
instead of commenting this on all PRs?
Hey @thoughtspile, thanks for the submission 🤜🏼
However, it seems like the test is failing:
Error: node_modules/banditypes/dist/index.d.ts(35,138): error TS2344: Type 'T[K]' does not satisfy the constraint '(...args: any) => any'.
Type 'T[keyof T]' is not assignable to type '(...args: any) => any'.
Type 'T[string] | T[number] | T[symbol]' is not assignable to type '(...args: any) => any'.
Type 'T[string]' is not assignable to type '(...args: any) => any'.