firebase-functions-test
Version:
A testing companion to firebase-functions.
22 lines (21 loc) • 676 B
TypeScript
import { pubsub } from 'firebase-functions/v1';
/** Create a Message from a JSON object. */
export declare function makeMessage(
/** Content of message. */
json: {
[key: string]: any;
},
/** Optional Pubsub message attributes. */
attributes?: {
[key: string]: string;
}): pubsub.Message;
/** Create a Message from a base-64 encoded string. */
export declare function makeMessage(
/** Base-64 encoded message string. */
encodedString: string,
/** Optional Pubsub message attributes. */
attributes?: {
[key: string]: string;
}): pubsub.Message;
/** Fetch an example Message already populated with data. */
export declare function exampleMessage(): pubsub.Message;