import {Application} from 'express'; export abstract class ServerModule{ private app:Application; constructor(private readonly projectTag:string){ if(!projectTag){ throw new Error("ProjectTag is required") } } init(app:Application){ this.app=app; } get ProjectTag(){ return this.projectTag; } get Application(){ return this.app; } get ModuleName(){ return "Not Set"; } }