更新
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
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>;
|
||||
Reference in New Issue
Block a user