LINQjs in TypeScript... Look no further.

Aug 18, 2014 at 7:38 AM
Edited Aug 18, 2014 at 7:41 AM
Following the 3.0.4 beta direction:
https://github.com/electricessence/TypeScript.NET/blob/master/System.Linq/Enumerable.ts

The resultant JS:
https://github.com/electricessence/TypeScript.NET/blob/master/build/System.Linq.js
Minified:
https://github.com/electricessence/TypeScript.NET/blob/master/build/System.Linq.min.js

For a quick look at what's included see the definition file:
https://github.com/electricessence/TypeScript.NET/blob/master/build/System.Linq.d.ts

I wanted the existing linq.d.ts file to be enough, but it didn't have generics.
This is effectively a fork of linqjs, but it was ported method by method and there are some key differences:
  • No string based lamdas since TypeScript has closures.
  • To support strong typing the signatures have been more explicit and no mixing of parameter structures.
  • Some selectors have been removed from certain functions to eliminate confusion.
I'm at about 95% parity right now with join and groupJoin not yet finished. Should be done this week.
I have spent a significant amount of time revising, improving, and optimizing the internals. Enjoy.