mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-08 15:57:21 +00:00
push all website files
This commit is contained in:
29
website/node_modules/firebase-functions/lib/providers/pubsub.d.ts
generated
vendored
Normal file
29
website/node_modules/firebase-functions/lib/providers/pubsub.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import { CloudFunction, EventContext } from '../cloud-functions';
|
||||
/** Select Cloud Pub/Sub topic to listen to.
|
||||
* @param topic Name of Pub/Sub topic, must belong to the same project as the function.
|
||||
*/
|
||||
export declare function topic(topic: string): TopicBuilder;
|
||||
/** Builder used to create Cloud Functions for Google Pub/Sub topics. */
|
||||
export declare class TopicBuilder {
|
||||
private triggerResource;
|
||||
private opts;
|
||||
/** Handle a Pub/Sub message that was published to a Cloud Pub/Sub topic */
|
||||
onPublish(handler: (message: Message, context: EventContext) => PromiseLike<any> | any): CloudFunction<Message>;
|
||||
}
|
||||
/**
|
||||
* A Pub/Sub message.
|
||||
*
|
||||
* This class has an additional .json helper which will correctly deserialize any
|
||||
* message that was a JSON object when published with the JS SDK. .json will throw
|
||||
* if the message is not a base64 encoded JSON string.
|
||||
*/
|
||||
export declare class Message {
|
||||
readonly data: string;
|
||||
readonly attributes: {
|
||||
[key: string]: string;
|
||||
};
|
||||
private _json;
|
||||
constructor(data: any);
|
||||
readonly json: any;
|
||||
toJSON(): any;
|
||||
}
|
Reference in New Issue
Block a user