/** * 缓存、记忆函数,缓存函数的运算结果 * 需注意缓存的函数得是纯函数 */ declare function cached any>(fn: T): (...args: Parameters) => ReturnType; export { cached };