import { get } from 'lodash' ; export class Config { constructor ( private readonly store ) { } get < T > ( key , defaultValue ? ) { return process . env [ key . toUpperCase ( ) ] ?? get ( this . store , key , defaultValue ) ; } }