Skip to content

Commit

Permalink
add partial
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisAnzieu committed Nov 24, 2023
1 parent 6c58727 commit 0c60f39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/api/typings/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export type JobStatus<Lib extends Library = 'bullmq'> = Lib extends 'bullmq'
export type JobCounts = Record<Status, number>;

export interface QueueAdapterOptions {
readOnlyMode?: boolean;
allowRetries?: boolean;
prefix?: string;
description?: string;
readOnlyMode: boolean;
allowRetries: boolean;
prefix: string;
description: string;
}

export type BullBoardQueues = Map<string, BaseAdapter>;
Expand Down
4 changes: 2 additions & 2 deletions packages/nestjs/src/bull-board.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<QueueAdapterOptions>): BaseAdapter },
options?: Partial<QueueAdapterOptions>,
};

//create our own types with the needed functions, so we don't need to include express/fastify libraries here.
Expand Down

0 comments on commit 0c60f39

Please sign in to comment.