TypeScript 0.9.5 beta does not allow generic type references without the type argument. This code will still compile for 0.9.1 users. Flight and Ember have further compile problems in 0.9.5 that I don't feel qualified to address as I'm not versed in those libraries.
Latest TypeScript complains about Array type used without a generic parameter.
I suggest replacing Array with any[], which works for both old and new TypeScript versions.
knockout.d.ts(171,47): ↵
error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(172,76): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(200,36): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(202,36): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(204,38): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(363,110): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(489,71): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(490,66): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(491,90): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(492,85): error TS2173: Generic type references must include all type arguments. ↵
There are probably still more overloads required for renderTemplate and
renderTemplateForEach as these methods do a lot of different things and
allow many possibilites in terms of types of arguments to be passed.
As far as I can tell these no longer fulfil a purpose and aren't needed
for backward compatibility. As an aside they appear to currently
confuse the TypeScript compiler as well (see
https://typescript.codeplex.com/workitem/1865 )
Removed extra overload of ensureSelectElementIsRenderedCorrectly to
prevent this compiler error with TS 0.9.1: "error TS2175: Overloads
cannot differ only by return type.". Also amended jasmine switching
bool to boolean so tests pass.