UNPKG

500 BTypeScriptView Raw
1import { pubsub_v1 } from "googleapis";
2import { Wrapper } from "../wrapper";
3import PubSubApi = pubsub_v1;
4export declare const filename: string;
5export interface CloudFunctionContext {
6 eventId: string;
7 timestamp: string;
8 eventType: string;
9 resource: object;
10}
11declare type PubsubMessage = PubSubApi.Schema$PubsubMessage;
12export declare function makeTrampoline(wrapper: Wrapper): {
13 trampoline: (data: PubsubMessage, context: CloudFunctionContext) => Promise<void>;
14};
15export {};