mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-21 23:48:05 +00:00
11 lines
319 B
TypeScript
11 lines
319 B
TypeScript
import type { Memoized } from './types.js';
|
|
interface Options {
|
|
getInstanceId?: () => string;
|
|
}
|
|
/**
|
|
* @name memoize
|
|
* @description Memomize the function with a specific instanceId
|
|
*/
|
|
export declare function memoize<T, F extends (...args: any[]) => T>(fn: F, { getInstanceId }?: Options): Memoized<F>;
|
|
export {};
|