diff --git a/src/function-builder.ts b/src/function-builder.ts index 76c4b6c9d..27fcd821a 100644 --- a/src/function-builder.ts +++ b/src/function-builder.ts @@ -154,7 +154,10 @@ export class FunctionBuilder { * same signature as an Express app. */ onRequest: ( - handler: (req: https.Request, resp: express.Response) => void + handler: ( + req: https.Request, + resp: express.Response + ) => void | Promise ) => https._onRequestWithOptions(handler, this.options), /** * Declares a callable method for clients to call using a Firebase SDK.