yukatan / commangular

Command framework for AngularJS
MIT License
83 stars 8 forks source link

Typescript definition support #16

Open DennisJaamann opened 9 years ago

DennisJaamann commented 9 years ago

Hello, just wondering whether this is somewhere in the pipeline of things to add for the library?

TypeScript support is really the way to go in my humble opinion since it is become more and more prominent in the angular world.

Best regards,

Dennis

yukatan commented 9 years ago

Hi, What exactly would you expect when you say definition support?? I'm not familiarized with Typescript yet, but I think the only way to do it compatible is to rewrite commangular with typescript. If not.. I really don't know what I have to add to give that support.

DennisJaamann commented 9 years ago

Simply stated, a TypeScript definition file lets you work with ES5 code (in this case commangular) in a TypeScript way.

@see https://github.com/borisyankov/DefinitelyTyped @see http://www.typescriptlang.org/Handbook#writing-dts-files

The question was more if you were considering supporting this already, not a call to action. It is an open source community so who knows when it will pop up ;)

Cheers

DennisJaamann commented 9 years ago

@see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/6064/