UNPKG

@vtex/api

Version:
4 lines (3 loc) 260 B
import { Cancellation } from '../../service/worker/runtime/typings'; import { MiddlewareContext } from '../typings'; export declare const cancellationToken: (cancellation?: Cancellation) => (ctx: MiddlewareContext, next: () => Promise<void>) => Promise<void>;