UNPKG

typedash

Version:

modern, type-safe collection of utility functions

13 lines (12 loc) 577 B
import { t as AnyFunction } from "./AnyFunction-C6KudB8p.cjs"; //#region src/functions/memoize/memoize.d.ts /** * Memoizes a function. * @param fn The function to memoize. * @param cacheKeyResolver An optional function used to resolve the cache key. Defaults to the first argument in the function call. * @returns The memoized function. */ declare function memoize<TFunction extends AnyFunction>(fn: TFunction, cacheKeyResolver?: (...args: Parameters<TFunction>) => string): TFunction; //#endregion export { memoize as t }; //# sourceMappingURL=memoize-B50fPu3j.d.cts.map