mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
account for hwen amd is not used, it is still added to ko static
This commit is contained in:
Vendored
+8
@@ -24,6 +24,13 @@ interface KoLiteCommandOptions {
|
||||
canExecute?: (isExecuting: boolean) => any;
|
||||
}
|
||||
|
||||
// when not AMD, add to ko object
|
||||
interface KnockoutStatic {
|
||||
command(options: KoLiteCommandOptions): KoliteCommand;
|
||||
asyncCommand(options: KoLiteCommandOptions): KoliteAsyncCommand;
|
||||
}
|
||||
|
||||
// when using AMD, it is exported
|
||||
interface KnockoutCommandStatic {
|
||||
command(options: KoLiteCommandOptions): KoliteCommand;
|
||||
asyncCommand(options: KoLiteCommandOptions): KoliteAsyncCommand;
|
||||
@@ -37,6 +44,7 @@ interface KnockoutBindingHandlers {
|
||||
command: KnockoutBindingHandler;
|
||||
}
|
||||
|
||||
// Ambient declarations for typescript+requirejs
|
||||
declare var kocommand: KnockoutCommandStatic;
|
||||
declare module 'kocommand'{
|
||||
export = kocommand;
|
||||
|
||||
Vendored
+4
@@ -15,6 +15,10 @@ interface DirtyFlag {
|
||||
reset(): void;
|
||||
}
|
||||
|
||||
interface KnockoutStatic {
|
||||
DirtyFlag: DirtyFlag;
|
||||
}
|
||||
|
||||
interface KnockoutDirtyFlagStatic {
|
||||
DirtyFlag: DirtyFlag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user