Files
dns-server/node_modules/schema-utils/declarations/util/memorize.d.ts
T
Alex Yang f627244b8f 更新
2026-03-30 01:04:46 +08:00

13 lines
334 B
TypeScript

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