diff --git a/packages/cacheable/src/index.ts b/packages/cacheable/src/index.ts index 51a866eb..5778eee2 100644 --- a/packages/cacheable/src/index.ts +++ b/packages/cacheable/src/index.ts @@ -576,7 +576,7 @@ export class Cacheable extends Hookified { * @param {WrapOptions} [options] The options for the wrap function * @returns {Function} The wrapped function */ - public wrap(function_: (...arguments_: any[]) => T, options?: WrapFunctionOptions): (...arguments_: any[]) => T { + public wrap(function_: (...arguments_: Arguments) => T, options?: WrapFunctionOptions): (...arguments_: Arguments) => T { const wrapOptions = { ttl: options?.ttl ?? this._ttl, keyPrefix: options?.keyPrefix, diff --git a/packages/cacheable/src/memory.ts b/packages/cacheable/src/memory.ts index b94e207d..c7f6f0d7 100644 --- a/packages/cacheable/src/memory.ts +++ b/packages/cacheable/src/memory.ts @@ -598,7 +598,7 @@ export class CacheableMemory extends Hookified { * @param {Object} [options] - The options to wrap * @returns {Function} - The wrapped function */ - public wrap(function_: (...arguments_: any[]) => T, options?: WrapFunctionOptions): (...arguments_: any[]) => T { + public wrap(function_: (...arguments_: Arguments) => T, options?: WrapFunctionOptions): (...arguments_: Arguments) => T { const wrapOptions = { ttl: options?.ttl ?? this._ttl, keyPrefix: options?.keyPrefix,