I have certain code that looks like this
interface KnockoutObservableArrayStatic {
fn: KnockoutObservableArrayFunctions<any>;
<T>(value?: T[]): KnockoutObservableArray<T>;
}
declare var ko: KnockoutObservableArrayStatic;
I want to create a empty observable array with type TElement, which should be something like this
var elementArray: TElement[] = null;
var observableArray = ko(elementArray);
But compiler gives me error
Cannot convert 'KnockoutObservableArray' to 'KnockoutObservableArray': Call signatures of types 'KnockoutObservableArray' and 'KnockoutObservableArray' are incompatible
How come?