mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-09 19:44:56 +02:00
8 lines
187 B
TypeScript
8 lines
187 B
TypeScript
export default memoize;
|
|
/**
|
|
* @template T
|
|
* @param fn {(function(): any) | undefined}
|
|
* @returns {function(): T}
|
|
*/
|
|
declare function memoize<T>(fn: (() => any) | undefined): () => T;
|