mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Fixed inject function return type
Per oclazyload's source code and on the suggestion of @MarkusKramer in DefinitelyTyped's Issue #7477, updated the return type of the inject function to be ng.IPromise<any> instead of boolean.
This commit is contained in:
Vendored
+2
-2
@@ -43,7 +43,7 @@ declare module oc {
|
||||
* Injects a module with the associated name into Angular. Useful for manual injection when loading through RequireJS, SystemJS, etc. Useful in
|
||||
* conjunction with the toggleWatch() method.
|
||||
*/
|
||||
inject(moduleName: string|string[]): boolean;
|
||||
inject(moduleName: string|string[]): ng.IPromise<any>;
|
||||
|
||||
/**
|
||||
* Enables or disables watching Angular for new modules. Useful in conjunction with the inject() method. Make sure to not keep the watch enabled
|
||||
@@ -146,4 +146,4 @@ declare module angular {
|
||||
*/
|
||||
module(name: string, requires?: (string|oc.IModuleConfig)[], configFn?: Function): IModule;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user