diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index 8fc87e98d4..d67e96a186 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -65,7 +65,6 @@ interface KnockoutComputedStatic { (): KnockoutComputed; (func: () => T, context?: any, options?: any): KnockoutComputed; (def: KnockoutComputedDefine, context?: any): KnockoutComputed; - (options?: any, context?: any): KnockoutComputed; } interface KnockoutComputed extends KnockoutObservable, KnockoutComputedFunctions { diff --git a/knockout/tests/knockout-tests.ts b/knockout/tests/knockout-tests.ts index 82b5aa25c0..2b9253d5c5 100644 --- a/knockout/tests/knockout-tests.ts +++ b/knockout/tests/knockout-tests.ts @@ -72,7 +72,7 @@ function test_computed() { this.acceptedNumericValue = ko.observable(123); this.lastInputWasValid = ko.observable(true); - this.attemptedValue = ko.computed({ + this.attemptedValue = ko.computed({ read: this.acceptedNumericValue, write: function (value) { if (isNaN(value)) @@ -284,7 +284,7 @@ function test_more() { }; ko.extenders.numeric = function (target, precision) { - var result = ko.computed({ + var result = ko.computed({ read: target, write: function (newValue) { var current = target(),