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/core / FuncConfig

Type Alias: FuncConfig<TEvent, TContext, TResult>

FuncConfig<TEvent, TContext, TResult> = object

Constructor options for Func.

Type Parameters

TEvent

TEvent = any

Runtime event type.

TContext

TContext = any

Runtime context type.

TResult

TResult = any

Async result type produced by the handler.

Properties

handler?

optional handler?: Handler<TEvent, TContext, TResult>

Final business handler invoked after plugins complete.

plugins?

optional plugins?: Plugin[]

Ordered plugin list to attach before the run handler.

runtime?

optional runtime?: FuncRuntime

Default runtime value written to context.runtime.