Page Contents
  
 
    
Home > @loopback/context > resolveInjectedArguments
resolveInjectedArguments() function
Given a function with arguments decorated with @inject, return the list of arguments resolved using the values bound in ctx.
The function returns an argument array when all dependencies were resolved synchronously, or a Promise otherwise.
Signature:
export declare function resolveInjectedArguments(target: object, method: string, ctx: Context, session?: ResolutionSession, nonInjectedArgs?: any[]): ValueOrPromise<BoundValue[]>;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| target | object | The class for constructor injection or prototype for method injection | 
| method | string | The method name. If set to '', the constructor will be used. | 
| ctx | [Context](/doc/en/lb4/apidocs.context.context.html) | The context containing values for `@inject` resolution | 
| session | [ResolutionSession](/doc/en/lb4/apidocs.context.resolutionsession.html) | _(Optional)_ Optional session for binding and dependency resolution | 
| nonInjectedArgs | any\[\] | _(Optional)_ Optional array of args for non-injected parameters | 
Returns: