• "cloud-functions"

Index

Type aliases

CloudFunction

CloudFunction<T>: Runnable<T> & TriggerAnnotated & (input: any, context?: any) => PromiseLike<any> | any

The Cloud Function type for all non-HTTPS triggers. This should be exported from your JavaScript file to define a Cloud Function.

This type is a special JavaScript function which takes a templated Event object as its only argument.

Type parameters

  • T

HttpsFunction

HttpsFunction: TriggerAnnotated & (req: Request, resp: Response) => void | Promise<void>

The Cloud Function type for HTTPS triggers. This should be exported from your JavaScript file to define a Cloud Function.

This type is a special JavaScript function which takes Express Request and Response objects as its only arguments.