You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
375 B

4 months ago
/**
*
* @example
* _.memoize(calColor);
* _.memoize(calColor, (...args) => args[0]);
* @param fn
* @param resolver key
* @param maxSize lru
*/
export default function memoize<T extends Function>(fn: T, resolver?: (...args: any[]) => string, maxSize?: number): T;