UNPKG

@polkadot/util

Version:
11 lines (10 loc) 319 B
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 {};