mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Added typings for knockout-pre-rendered library
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/// <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) => { }
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Type definitions for knockout-pre-rendered
|
||||
// Project: https://github.com/ErikSchierboom/knockout-pre-rendered
|
||||
// Definitions by: Erik Schierboom <https://github.com/ErikSchierboom>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../knockout/knockout.d.ts" />
|
||||
|
||||
interface KnockoutBindingHandlers {
|
||||
init: KnockoutBindingHandler;
|
||||
foreachInit: KnockoutBindingHandler;
|
||||
}
|
||||
Reference in New Issue
Block a user