From 8b74f474f5276058eefed8b9f7025247a3ee5d00 Mon Sep 17 00:00:00 2001 From: Julien Dubois Date: Thu, 14 Sep 2023 09:32:07 +0200 Subject: [PATCH] feat: make ExpressAdapter fields protected (#625) Private fields make it difficult to extends ExpressAdapter. Using protected instead make ExpressAdapter open for extension --- packages/express/src/ExpressAdapter.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/express/src/ExpressAdapter.ts b/packages/express/src/ExpressAdapter.ts index 6b8654cd..a74d4aba 100644 --- a/packages/express/src/ExpressAdapter.ts +++ b/packages/express/src/ExpressAdapter.ts @@ -12,11 +12,11 @@ import express, { Express, NextFunction, Request, Response, Router } from 'expre import { wrapAsync } from './helpers/wrapAsync'; export class ExpressAdapter implements IServerAdapter { - private readonly app: Express; - private basePath = ''; - private bullBoardQueues: BullBoardQueues | undefined; - private errorHandler: ((error: Error) => ControllerHandlerReturnType) | undefined; - private uiConfig: UIConfig = {}; + protected readonly app: Express; + protected basePath = ''; + protected bullBoardQueues: BullBoardQueues | undefined; + protected errorHandler: ((error: Error) => ControllerHandlerReturnType) | undefined; + protected uiConfig: UIConfig = {}; constructor() { this.app = express();