diff options
Diffstat (limited to 'src/modules/helpers/unique.ts')
| -rw-r--r-- | src/modules/helpers/unique.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/helpers/unique.ts b/src/modules/helpers/unique.ts index fd240c2f..ebd1b88e 100644 --- a/src/modules/helpers/unique.ts +++ b/src/modules/helpers/unique.ts @@ -81,7 +81,13 @@ Try adjusting maxTime or maxRetries parameters for faker.helpers.unique().` * @param options.compare The function used to determine whether a value was already returned. Defaults to check the existence of the key. * @param options.store The store of unique entries. Defaults to `GLOBAL_UNIQUE_STORE`. */ -export function exec<Method extends (...parameters) => RecordKey>( +export function exec< + Method extends ( + // TODO christopher 2023-02-14: This `any` type can be fixed by anyone if they want to. + // eslint-disable-next-line @typescript-eslint/no-explicit-any + ...parameters: any[] + ) => RecordKey +>( method: Method, args: Parameters<Method>, options: { |
