mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
account for hwen amd is not used, it is still added to ko static
This commit is contained in:
1 parent
de29bbf60b
commit
b82ebfaac5
2 files changed
+12
No files matched your search
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