slack-edge
Version:
Slack app development framework for edge functions with streamlined TypeScript support
16 lines • 611 B
TypeScript
/**
* An interface representing context parameter in Cloudflare Workers and Vercel Edge Functions.
* Refer to the following resources:
* - https://developers.cloudflare.com/workers/runtime-apis/fetch-event/
* - https://vercel.com/docs/concepts/functions/edge-functions/edge-functions-api#waituntil
*/
export interface ExecutionContext {
waitUntil(promise: Promise<any>): void;
}
/**
* Default ExecutionContext with simple settings.
*/
export declare class NoopExecutionContext implements ExecutionContext {
waitUntil(promise: Promise<any>): void;
}
//# sourceMappingURL=execution-context.d.ts.map