Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.
/ LINQ-to-TypeScript Public archive

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

License

Notifications You must be signed in to change notification settings

schungx/LINQ-to-TypeScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LINQ-to-TypeScript

This project provides type definitions files linq.js version 3.0 beta.

Files

Usage Example

Note: Only TypeScript version 0.9+ (with generics support) can be used.

In main.html:

<script type="text/javascript" src="lib/linq.min.js"></script>     <!-- version 3.0 beta -->
<script type="text/javascript" src="lib/main.js"></script>

In main.js (AMD-style):

/// <reference path="linq3.amd.d.ts" />

import linq = module("linqjs");

var r = linq.from(obj).where(x => ...).orderBy(x => ...).select(x => ...).distinct().toArray();

In main.js (non-AMD):

/// <reference path="linq3.d.ts" />

var r = Enumerable.from(obj).where(x => ...).orderBy(x => ...).select(x => ...).distinct().toArray();

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published