@shopify/shopify-app-remix
Version:
Shopify Remix - to simplify the building of Shopify Apps with Remix
12 lines • 453 B
TypeScript
export interface IdempotentHandlePromiseParams {
promiseFunction: () => Promise<any>;
identifier: string;
}
export declare class IdempotentPromiseHandler {
protected identifiers: Map<string, number>;
constructor();
handlePromise({ promiseFunction, identifier, }: IdempotentHandlePromiseParams): Promise<any>;
private isPromiseRunnable;
private clearStaleIdentifiers;
}
//# sourceMappingURL=idempotent-promise-handler.d.ts.map