UNPKG

316 BTypeScriptView Raw
1import type { Memoized } from './types';
2interface Options {
3 getInstanceId?: () => string;
4}
5/**
6 * @name memoize
7 * @description Memomize the function with a specific instanceId
8 */
9export declare function memoize<T, F extends (...args: any[]) => T>(fn: F, { getInstanceId }?: Options): Memoized<F>;
10export {};