Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "handler"

Index

Type aliases

Type aliases

Handler

Handler<Req, Res>: (request: Req, context: Context) => Promise<Option<Res>>

Defines the type that handles a Lambda request.

returns

Promise that holds an optional response.

Type parameters

  • Req

    The type of the Lambda request.

  • Res

    The type of the Lambda response.

Type declaration

    • (request: Req, context: Context): Promise<Option<Res>>
    • Parameters

      • request: Req
      • context: Context

      Returns Promise<Option<Res>>

Generated using TypeDoc