mirror of
https://github.com/documenso/documenso.git
synced 2025-11-20 03:32:14 +10:00
fix: type casting
This commit is contained in:
@ -67,9 +67,8 @@ export class JobClient<T extends ReadonlyArray<JobDefinition> = []> {
|
||||
_cacheKey: string,
|
||||
jobOptions: SimpleTriggerJobOptions,
|
||||
): Promise<unknown> => {
|
||||
// Type casting is necessary due to generic constraints
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
return await this.triggerJob(jobOptions as any);
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
||||
return await this.triggerJob(jobOptions as TriggerJobOptions<T>);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user