TypeScript

Oct 2, 2012 at 4:38 PM

Hi!

Will be version linq.js for recently released TypeScript?

 

Coordinator
Oct 2, 2012 at 4:52 PM

Hi.

I am excited by announcement of TypeScript.
Of course, I make type annnotation file soon!
It named linq.js.d.ts.
I am just making. 

Oct 8, 2012 at 8:59 AM

That's great news :)

Oct 9, 2012 at 10:57 AM

I can safely say that anyone that uses Visual Studio and does JavaScript is excited about TypeScript.

I have deployed linq.js with great success from CoffeeScript in the Visual Studio environment.

The productivity gain by moving to TypeScript for me is huge!

That said, I'm in dire need of a TypeScript definition file for Linq.js.

I'd be happy to test whatever definition file you have and provide feedback.

Any ETA?

Thanks for Linq.js !!!

Coordinator
Oct 9, 2012 at 2:49 PM

Today, I released v3.0.3-Beta4 that contains TypeScript declaration file.

This definition file is experimental.
Please give me a feedback. 

Please enjoy TypeScript and linq.js!

Nov 3, 2012 at 2:02 PM

Will you please make a simple example on how to use linq.ts

I use Visual Studio 2012.

Thanks

Coordinator
Nov 4, 2012 at 4:37 PM

Okay.

put linq.js, linq.js.d.ts, app.ts, default.htm on same directory.

app.ts -----------

/// <reference path="linq.js.d.ts" />

Enumerable.range(1, 10)
    .where(x => x % 2 == 0)
    .select(x => x * x)
    .writeLine();

default.htm -----

<html>
<head>
    <script type="text/javascript" src="linq.js"></script>
    <script type="text/javascript" src="app.js"></script>
</head>
<body>
</body>
</html>

open default.htm in browser, result is

4
16
36
64
100