ts-data-forge
Version:
[](https://www.npmjs.com/package/ts-data-forge) [](https://www.npmjs.com/package/ts-data-forge) [
* - Object arguments require careful key generation to ensure uniqueness
* - Pure functions only - memoizing functions with side effects can lead to bugs
*
* @template A - The tuple type of the function arguments
* @template R - The return type of the function
* @template K - The primitive type used as the cache key (must be valid Map
* key)
* @param fn - The pure function to memoize
* @param argsToCacheKey - Function that converts arguments to a unique cache
* key
* @returns A memoized version of the input function with the same signature
*
* @see https://en.wikipedia.org/wiki/Memoization
*/
export declare const memoizeFunction: <const A extends readonly unknown[], R, K extends Primitive>(fn: (...args: A) => R, argsToCacheKey: (...args: A) => K) => ((...args: A) => R);
//# sourceMappingURL=memoize-function.d.mts.map