Types overview
Added in v1.0.0
Table of contents
model
EffectHandler (type alias)
Effectful AWS Lambda handler type.
Signature
export type EffectHandler<T, R, E = never, A = void> = (event: T, context: Context) => Effect.Effect<A, E, R>
Added in v1.0.0
EffectHandlerWithLayer (type alias)
Combined object of an EffectHandler and a global layer.
Signature
export type EffectHandlerWithLayer<T, R, E1 = never, E2 = never, A = void> = {
handler: EffectHandler<T, R, E1, A>
layer: Layer.Layer<R, E2>
}
Added in v1.0.0
Handler (type alias)
AWS Lambda native handler type.
Signature
export type Handler<TEvent = unknown, TResult = any> = (event: TEvent, context: Context) => Promise<TResult>
Added in v1.0.0