From aaf7d88e112d0f3b4767cbfc58ecc165c4ad421d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Hansson?= Date: Thu, 5 Feb 2015 10:22:46 +0100 Subject: [PATCH] KoLiteCommandOptions.execute must be a function Before this it caused the options-object to be of any object (function, number, array etc). --- kolite/kolite.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kolite/kolite.d.ts b/kolite/kolite.d.ts index 6310fcad49..c9535411b1 100644 --- a/kolite/kolite.d.ts +++ b/kolite/kolite.d.ts @@ -63,13 +63,13 @@ interface KoliteAsyncCommand extends KoliteCommand { } interface KoLiteCommandOptions { - execute?: any; + execute(...args: any[]): any; canExecute?: (isExecuting: boolean) => any; } interface KnockoutStatic { command(options: KoLiteCommandOptions): KoliteCommand; - asyncCommand(optons: KoLiteCommandOptions): KoliteAsyncCommand; + asyncCommand(options: KoLiteCommandOptions): KoliteAsyncCommand; } interface KnockoutUtils {