mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Update knockout-tests.ts
Added a different versión of init, which returns an object instead of void.
This commit is contained in:
@@ -163,6 +163,7 @@ function test_bindings() {
|
||||
|
||||
ko.bindingHandlers.yourBindingName = {
|
||||
init: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
|
||||
return { "controlsDescendantBindings": true };
|
||||
},
|
||||
update: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
|
||||
}
|
||||
@@ -655,4 +656,4 @@ function testUnwrapUnion() {
|
||||
var possibleObs: KnockoutObservable<number> | number;
|
||||
var num = ko.unwrap(possibleObs);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user