Skip to content

Commit cbfb68d

Browse files
ron-taylermahendraHegde
authored andcommitted
Fix TS-Error
TS2322: Type (config: ConfigType<typeof idempotencyConfig>) => IdempotencyPluginOptions is not assignable to type (...args: unknown[]) => IdempotencyPluginOptions | Promise<IdempotencyPluginOptions> Types of parameters config and args are incompatible. Type unknown is not assignable to type Readonly<{ REDIS_URL: string; } & CleanedEnvAccessors>
1 parent 872614c commit cbfb68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-nestjs/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type RootAsyncRegisterOptions =
1717
| IdempotencyPluginOptions
1818
| (Pick<ModuleMetadata, "imports"> & {
1919
useFactory?: (
20-
...args: unknown[]
20+
...args: any[]
2121
) => Promise<IdempotencyPluginOptions> | IdempotencyPluginOptions;
2222
inject?: Array<InjectionToken | OptionalFactoryDependency>;
2323
});

0 commit comments

Comments
 (0)