mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Knockout: Fixed tests
This commit is contained in:
@@ -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<number>({
|
||||
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<any>({
|
||||
read: target,
|
||||
write: function (newValue) {
|
||||
var current = target(),
|
||||
|
||||
Reference in New Issue
Block a user