UNPKG

@bigmi/core

Version:

TypeScript library for Bitcoin apps.

9 lines (8 loc) 315 B
import { LruMap } from './lru.js'; export declare const promiseCache: LruMap<Promise<any>>; type WithDedupeOptions = { enabled?: boolean | undefined; id?: string | undefined; }; export declare function withDedupe<data>(fn: () => Promise<data>, { enabled, id }: WithDedupeOptions): Promise<data>; export {};