diff --git a/index.d.ts b/index.d.ts index 4d8f37718..dfee76312 100644 --- a/index.d.ts +++ b/index.d.ts @@ -22,7 +22,7 @@ declare class Rollbar { public captureEvent(metadata: object, level: Rollbar.Level): Rollbar.TelemetryEvent; - public lambdaHandler(handler: Rollbar.LambdaHandler): Rollbar.LambdaHandler; + public lambdaHandler(handler: Rollbar.LambdaHandler): Rollbar.LambdaHandler; public errorHandler(): Rollbar.ExpressErrorHandler; @@ -32,7 +32,7 @@ declare class Rollbar { } declare namespace Rollbar { - export type LambdaHandler = (event: object, context: object, callback: Callback) => void; + export type LambdaHandler = (event: E, context: object, callback: Callback) => void; export type MaybeError = Error | undefined | null; export type Level = "debug" | "info" | "warning" | "error" | "critical"; export interface Configuration {