typescript-runtime-type-benchmarks icon indicating copy to clipboard operation
typescript-runtime-type-benchmarks copied to clipboard

Add banditypes

Open thoughtspile opened this issue 1 year ago • 1 comments

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?

thoughtspile avatar Feb 28 '23 12:02 thoughtspile

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'.

moltar avatar Feb 28 '23 17:02 moltar