Aug 22, 2013 at 9:13 AM
Edited Aug 22, 2013 at 1:40 PM
The 0.9.1.1 now picks up all definitions (incl the kendo one), plus it found a few type errors of mine that 0.9.1 missed. Great work guys!
A few errors (of mine) I stumbled on and that might help others perhaps:
0.9.1.1 reported "Generic type references must include all type arguments" for JQuery.d.ts and others, on these kinds of defs:
promise(type?: any, target?: any): JQueryPromise;
// change to :
promise(type?: any, target?: any): JQueryPromise<any>;
// I guess I should be using T instead, but I'm not sure exacly how.
A definition was not being picked up, and when run the file with that in the console I got the error TS5037: Cannot compile external modules unless the '--module' flag is provided.
// I used this erroneously in a few places:
exports interface IFoo ...
// change to (if you're not using external modules):
interface IFoo ...
And I found that even though I included my definition files in Visual Studio it had one of them included as Content, check properties, Build Action. Should be TypeScriptCompile. Both .ts files and .d.ts files