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?
optionalhandler?:Handler<TEvent,TContext,TResult>
Final business handler invoked after plugins complete.
plugins?
optionalplugins?:Plugin[]
Ordered plugin list to attach before the run handler.
runtime?
optionalruntime?:FuncRuntime
Default runtime value written to context.runtime.