Skip to content

Commit

Permalink
feat: make ExpressAdapter fields protected (#625)
Browse files Browse the repository at this point in the history
Private fields make it difficult to extends ExpressAdapter. Using protected instead make ExpressAdapter open for extension
  • Loading branch information
RedbeanGit authored Sep 14, 2023
1 parent f630690 commit 8b74f47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/express/src/ExpressAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8b74f47

Please sign in to comment.