typescript-services
Open up TypeScript services for nodejs consumption
Usage
/// ; // formatter:;;console.logformatter;
Contributing
Getting the language service
Opening up the TypeScript compiler : http://www.slideshare.net/nnzz2475/typescript-35845723
git glone https://git01.codeplex.com/typescript TypeScriptcd TypeScriptnpm install node_modules/.bin/jake localcd built/localls
Important:
typescriptServices.d.tstypescriptServices.js
unwrap
.js
Add line at bottom of .js:
module.exports = TypeScript;
.d.ts
Add header needed to a valid DT definition:
// Type definitions for TypeScript-Services// Project: https://www.npmjs.org/package/typescript-services// Definitions by: Basarat Ali Syed <http://github.com/basarat>// Definitions: https://github.com/borisyankov/DefinitelyTyped
Cleanup the following lines from .d.ts
as these should come from node.d.ts
.
declare ;declare ;
declare declare ;
declare ;
Add line at bottom on .d.ts:
declare
All set!