From 3339edcc3d266cf1e4034433d8221260a3d2a92d Mon Sep 17 00:00:00 2001 From: Sergio Date: Mon, 20 Oct 2014 14:58:22 +0200 Subject: [PATCH] Preprocess option to Knockout binding's syntax From the oficial documentation: http://knockoutjs.com/documentation/binding-preprocessing.html --- knockout/knockout.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index d67e96a186..dba3fc36f6 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -134,6 +134,7 @@ interface KnockoutBindingHandler { init? (element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext): void; update? (element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext): void; options?: any; + preprocess?: (value: string, name: string, addBindingCallback?: (name: string, value: string) => void) => string; } interface KnockoutBindingHandlers {