A translation of LINQ.js (LINQ implementation for JavaScript) into TypeScript