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.
logChange is an example of an extension, not part of the standard library. To add extensions, simply extend the interface outside of the definition file:
interface KnockoutExtenders {
logChange(target: KnockoutObservableAny, option: string): KnockoutObservableAny;
}
Although this function is available via knockout-{version}.debug.js, it is
not part of the minified knockout-{version}.js file. Invoking this function
will cause a runtime javascript error when invoked against the minified js.
See this for more info: https://github.com/SteveSanderson/knockout/issues/670
angularjs: docs around first page tutorials
jquery: fix for known lib.d.ts big
knockback: add typing for observable based on tutorial, add docs around
observable.