LaunchableHandlerType<Input>: ((event: Input, context: Context) => Promise<default<any> | null>)

Defines a type for a launchable handler that takes an input event and context, and returns a promise of a response.

Type Parameters

  • Input

Type declaration

    • (event, context): Promise<default<any> | null>
    • Parameters

      • event: Input

        The input event for the handler.

      • context: Context

        The context for the handler.

      Returns Promise<default<any> | null>

      A promise that resolves to a response.