FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/node-utils / ExportedHandler

Type Alias: ExportedHandler<TEvent, TContext, TResult>

ExportedHandler<TEvent, TContext, TResult> = (event?, context?) => Promise<TResult>

Promise-based handler signature exported by packaged FaasJS API modules.

Type Parameters

TEvent

TEvent = any

Runtime event type.

TContext

TContext = any

Runtime context type.

TResult

TResult = any

Async result type returned by the handler.

Parameters

event?

TEvent

Runtime event payload passed to the handler.

context?

TContext

Runtime context object passed to the handler.

Returns

Promise<TResult>

Promise that resolves to the handler result.