mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-14 12:30:47 +08:00
IInjectorService.get has an optional 2nd param.
`caller` is an optional string to provide the origin of the function call for error messages. https://docs.angularjs.org/api/auto/service/$injector#get
This commit is contained in:
1 parent
7f07bd88d1
commit
79dfea3815
1 file changed
+1
-1
Vendored
+1
-1
@@ -1693,7 +1693,7 @@ declare module angular {
|
||||
interface IInjectorService {
|
||||
annotate(fn: Function): string[];
|
||||
annotate(inlineAnnotatedFunction: any[]): string[];
|
||||
get<T>(name: string): T;
|
||||
get<T>(name: string, caller?: string): T;
|
||||
has(name: string): boolean;
|
||||
instantiate<T>(typeConstructor: Function, locals?: any): T;
|
||||
invoke(inlineAnnotatedFunction: any[]): any;
|
||||
|
||||
Reference in new issue
Block a user