From 6c587272eec8a45698cd3750ceabf823c87c2b14 Mon Sep 17 00:00:00 2001 From: Alexis <11615615+AlexisAnzieu@users.noreply.github.com> Date: Thu, 23 Nov 2023 16:36:05 -0500 Subject: [PATCH 1/2] Update QueueAdapterOptions in order to modify one attribute only --- packages/api/typings/app.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/api/typings/app.ts b/packages/api/typings/app.ts index 94ffb62a..918365e2 100644 --- a/packages/api/typings/app.ts +++ b/packages/api/typings/app.ts @@ -27,10 +27,10 @@ export type JobStatus = Lib extends 'bullmq' export type JobCounts = Record; export interface QueueAdapterOptions { - readOnlyMode: boolean; - allowRetries: boolean; - prefix: string; - description: string; + readOnlyMode?: boolean; + allowRetries?: boolean; + prefix?: string; + description?: string; } export type BullBoardQueues = Map; From 0c60f39bdf12a789debb9224692c3da21abbfe71 Mon Sep 17 00:00:00 2001 From: Alexis <11615615+AlexisAnzieu@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:17:12 +0000 Subject: [PATCH 2/2] add partial --- packages/api/typings/app.ts | 8 ++++---- packages/nestjs/src/bull-board.types.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/api/typings/app.ts b/packages/api/typings/app.ts index 918365e2..94ffb62a 100644 --- a/packages/api/typings/app.ts +++ b/packages/api/typings/app.ts @@ -27,10 +27,10 @@ export type JobStatus = Lib extends 'bullmq' export type JobCounts = Record; export interface QueueAdapterOptions { - readOnlyMode?: boolean; - allowRetries?: boolean; - prefix?: string; - description?: string; + readOnlyMode: boolean; + allowRetries: boolean; + prefix: string; + description: string; } export type BullBoardQueues = Map; diff --git a/packages/nestjs/src/bull-board.types.ts b/packages/nestjs/src/bull-board.types.ts index 308679dd..9b783e7d 100644 --- a/packages/nestjs/src/bull-board.types.ts +++ b/packages/nestjs/src/bull-board.types.ts @@ -13,8 +13,8 @@ export type BullBoardModuleOptions = { export type BullBoardQueueOptions = { name: string; - adapter: { new(queue: any, options?: QueueAdapterOptions): BaseAdapter }, - options?: QueueAdapterOptions, + adapter: { new(queue: any, options?: Partial): BaseAdapter }, + options?: Partial, }; //create our own types with the needed functions, so we don't need to include express/fastify libraries here.