This example project demonstrates how to get TypeScript, KnockoutJS, RequireJS and jQuery to play nicely together.
- Install node.js
- Reopen your command prompt and run "npm install -g typescript@0.8.3"
- Compile with "tsc --module AMD ./js/app/main.ts"
Compiles with TypeScript 0.8.3. See the '0.9.0' branch for a version with works with TypeScript 0.9.0.
- knockout.amd.d.ts - DefinitelyTyped fork (https://github.com/diachedelic/DefinitelyTyped/blob/master/knockout/knockout.amd.d.ts)
- jquery.d.ts - DefinitelyTyped
- jquery.blinky.js - http://aaron-powell.com/doing-it-wrong/blink