Skip to main content

setCurrentInvoke

@h4ad/serverless-adapter > setCurrentInvoke

(function) setCurrentInvoke

Method that saves to the event created by the serverless trigger or context created by the serverless environment.

Signature:

export declare function setCurrentInvoke<TEvent = any, TContext = any>(\{ event, context, }: CurrentInvoke<TEvent, TContext>): void;

Parameters

ParameterTypeDescription
{ event, context, }CurrentInvoke <TEvent, TContext>

Returns:

void

Remarks

This method MUST NOT be called by you, this method MUST only be used internally in this library.