bahmutov / cypress-each

A demo of mocha-each and custom describe.each and it.each implementation for Cypress
21 stars 6 forks source link

Issue with compiling on TypeScript versions 5+ #147

Open Tsixas opened 4 months ago

Tsixas commented 4 months ago

Howdy folks,

When we add Cypress-Each to any of our packages, if we are using any of the latest version of TypeScript, we get an issue when building with Cypress-Each. I'll attached the errors we see. These errors go away if we downgrade to TypeScript 4.8.4, however, I wanted to raise this issue up.

node_modules/cypress-each/src/index.d.ts:47:20 - error TS2313: Type parameter 'T' has a circular constraint.

47     each<T extends readonly [...T]>(
                      ~~~~~~~~~~~~~~~

node_modules/cypress-each/src/index.d.ts:47:30 - error TS2574: A rest element type must be an array type.

47     each<T extends readonly [...T]>(