diff --git a/index.d.ts b/index.d.ts index 93465b194..4bc088b80 100644 --- a/index.d.ts +++ b/index.d.ts @@ -32,7 +32,11 @@ declare class Rollbar { } declare namespace Rollbar { - export type LambdaHandler = (event: E, context: object, callback: Callback) => void; + export type LambdaHandler = ( + event: TEvent, + context: Context, + callback: Callback, + ) => void | Promise; export type MaybeError = Error | undefined | null; export type Level = "debug" | "info" | "warning" | "error" | "critical"; export interface Configuration {