accounts
Version:
Tempo Accounts SDK
13 lines • 498 B
TypeScript
/** Deduplicates in-flight promises by key. */
export declare function withDedupe<data>(fn: () => Promise<data>, { cache, enabled, id }: withDedupe.Options): Promise<data>;
export declare namespace withDedupe {
var cache: Map<string, Promise<unknown>>;
}
export declare namespace withDedupe {
type Options = {
cache?: Map<string, Promise<unknown>> | undefined;
enabled?: boolean | undefined;
id?: string | undefined;
};
}
//# sourceMappingURL=withDedupe.d.ts.map