UNPKG

appium-xcuitest-driver

Version:

Appium driver for iOS using XCUITest for backend

11 lines 524 B
/** * 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