KoLiteCommandOptions.execute must be a function

Before this it caused the options-object to be of any object (function,
number, array etc).
This commit is contained in:
Torbjörn Hansson 2015-02-05 10:22:46 +01:00
parent 9e9464c970
commit aaf7d88e11

4
kolite/kolite.d.ts vendored
View File

@ -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 {