export abstract class EnvConfig { private envConfig:T public constructor( private readonly env:string ){ this.envConfig = this.build(this.env) } protected abstract build(env):T public make():T { return this.envConfig } }