mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
15 lines
889 B
TypeScript
15 lines
889 B
TypeScript
/// <reference path="knockout-pre-rendered.d.ts" />
|
|
|
|
function initBindingHandler() {
|
|
ko.bindingHandlers.init = {
|
|
init: (element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext) => {},
|
|
update: (element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext) => {}
|
|
};
|
|
}
|
|
|
|
function foreachInitBindingHandler() {
|
|
ko.bindingHandlers.foreachInit = {
|
|
init: (element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext) => { },
|
|
update: (element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext) => { }
|
|
};
|
|
} |