appium-uiautomator2-driver
Version:
UiAutomator2 integration for Appium
11 lines • 524 B
TypeScript
/**
* Creates a memoized version of a function.
*
* @param fn - Function to memoize
* @param resolver - Optional cache key resolver. If omitted, the first argument is used as the cache key.
* @returns Memoized function with a mutable `.cache` map (compatible with lodash-style cache resets in tests).
*/
export declare function memoize<Fn extends (...args: any[]) => any>(fn: Fn, resolver?: (...args: Parameters<Fn>) => unknown): Fn & {
cache: Map<unknown, ReturnType<Fn>>;
};
//# sourceMappingURL=memoize.d.ts.map