Page Contents
Home > @loopback/context > InvocationContext > (constructor)
InvocationContext.(constructor)
Construct a new instance of InvocationContext
Signature:
constructor(parent: Context, target: object, methodName: string, args: InvocationArgs, source?: InvocationSource<unknown> | undefined);
Parameters
| Parameter | Type | Description |
|---|---|---|
|
parent |
Parent context, such as the RequestContext | |
|
target |
object |
Target class (for static methods) or prototype/object (for instance methods) |
|
methodName |
string |
Method name |
|
args |
An array of arguments | |
|
source |
InvocationSource<unknown> | undefined |
(Optional) |