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 Context Parent context, such as the RequestContext
target object Target class (for static methods) or prototype/object (for instance methods)
methodName string Method name
args InvocationArgs An array of arguments
source InvocationSource<unknown> | undefined (Optional)