CloudFunction interface

The 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.

Signature:

export interface CloudFunction<T> extends Runnable<T> 

Extends: Runnable<T>

Properties

Property Type Description
__endpoint ManifestEndpoint
__requiredAPIs ManifestRequiredAPI[]
__trigger TriggerAnnotation

CloudFunction.__endpoint

Signature:

__endpoint: ManifestEndpoint;

CloudFunction.__requiredAPIs

Signature:

__requiredAPIs?: ManifestRequiredAPI[];

CloudFunction.__trigger

Signature:

__trigger: TriggerAnnotation;