[ error ] typescript compiler errors app/Controllers/Http/CronJobController.ts:75:17 - error TS2769: No overload matches this call. Overload 1 of 2, '(job: "App/Jobs/CalculateUserStat", payload: CalculateUserStatPayload, options?: JobsOptions | undefined): Promise<string>', gave the following error. Argument of type '{ queueName: string; }' is not assignable to parameter of type 'JobsOptions'. Object literal may only specify known properties, and 'queueName' does not exist in type 'JobsOptions'. Overload 2 of 2, '(job: "App/Jobs/CalculateUserStat", payload: CalculateUserStatPayload, options?: JobsOptions | undefined): Promise<string>', gave the following error. Argument of type '{ queueName: string; }' is not assignable to parameter of type 'JobsOptions'. Object literal may only specify known properties, and 'queueName' does not exist in type 'JobsOptions'.
` import { Queue } from '@ioc:Setten/Queue';
Queue.dispatch('App/Jobs/RegisterStripeCustomer', {...}, { queueName: 'stripe', }); `
This produce errors when compiling project
[ error ] typescript compiler errors app/Controllers/Http/CronJobController.ts:75:17 - error TS2769: No overload matches this call. Overload 1 of 2, '(job: "App/Jobs/CalculateUserStat", payload: CalculateUserStatPayload, options?: JobsOptions | undefined): Promise<string>', gave the following error. Argument of type '{ queueName: string; }' is not assignable to parameter of type 'JobsOptions'. Object literal may only specify known properties, and 'queueName' does not exist in type 'JobsOptions'. Overload 2 of 2, '(job: "App/Jobs/CalculateUserStat", payload: CalculateUserStatPayload, options?: JobsOptions | undefined): Promise<string>', gave the following error. Argument of type '{ queueName: string; }' is not assignable to parameter of type 'JobsOptions'. Object literal may only specify known properties, and 'queueName' does not exist in type 'JobsOptions'.