arogozine / LinqToTypeScript

LINQ to TypeScript
https://arogozine.github.io/linqtotypescript/
MIT License
141 stars 18 forks source link

Typescript 5.6.x compiling issue #32

Closed MikaKarjunen closed 3 weeks ago

MikaKarjunen commented 1 month ago

When trying to compile using typescript 5.6.x the following error message is shown.

error TS2320: Interface 'ArrayEnumerable' cannot simultaneously extend types 'TSource[]' and 'IEnumerable'. Named property '[Symbol.iterator]' of types 'TSource[]' and 'IEnumerable' are not identical.

MikaKarjunen commented 1 month ago

This is a brilliant library and we'd love to keep using it. I hope we can come up with a solution of some sort.

arogozine commented 1 month ago

Seems like doing Omit<IEnumerable<TSource>, typeof Symbol.iterator> { does the trick

Will try to push out 12.0.0-beta before end of week

MikaKarjunen commented 1 month ago

Seems like doing Omit<IEnumerable<TSource>, typeof Symbol.iterator> { does the trick

Will try to push out 12.0.0-beta before end of week

That would be just brilliant!

arogozine commented 1 month ago

See if this works, https://www.npmjs.com/package/linq-to-typescript/v/12.0.0-beta1

MikaKarjunen commented 3 weeks ago

See if this works, https://www.npmjs.com/package/linq-to-typescript/v/12.0.0-beta1 Seems to work just fine. No issues at all.

MikaKarjunen commented 3 weeks ago

As far as I'm concerned this issue is now closed.