import { AppMasterVarsType,AppMasterVarsConfig } from "./types"; export interface AppMasterVars extends AppMasterVarsType {} export class AppMasterVars { set(vars:AppMasterVars){Object.assign(this,vars);} constructor(config:AppMasterVarsConfig){ this.name = config.name; this.host = process.env.HOST||config.host; this.port = Number(process.env.PORT)||config.port; this.env = process.env.NODE_ENV; this.entry = config.entry; this.settings = config.settings; this.providers = config.providers||{}; this.consumers = config.consumers||{}; this.whitelist = config.whitelist||[];}} export default AppMasterVars;