Added - KoliteAsyncCommand interface (makes "isExecuting" public)

This commit is contained in:
Jaco Erasmus
2014-06-04 15:44:48 +02:00
parent 9ff1cf69b3
commit 7197351c94
+5 -1
View File
@@ -58,6 +58,10 @@ interface KoliteCommand {
execute(...args: any[]): any;
}
interface KoliteAsyncCommand extends KoliteCommand {
isExecuting: KnockoutObservable<boolean>;
}
interface KoLiteCommandOptions {
execute?: any;
canExecute?: (isExecuting: boolean) => any;
@@ -65,7 +69,7 @@ interface KoLiteCommandOptions {
interface KnockoutStatic {
command(options: KoLiteCommandOptions): KoliteCommand;
asyncCommand(optons: KoLiteCommandOptions): KoliteCommand;
asyncCommand(optons: KoLiteCommandOptions): KoliteAsyncCommand;
}
interface KnockoutUtils {