export default memoize; export type FunctionReturning = () => T; /** * @template T * @typedef {() => T} FunctionReturning */ /** * @template T * @param {FunctionReturning} fn memorized function * @returns {FunctionReturning} new function */ declare function memoize(fn: FunctionReturning): FunctionReturning;