Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import type from '../type.mjs'
  2.  
  3. export default class AppConfig {
  4.   constructor (config) {
  5.     this.logLevel = type.string(config.logLevel)
  6.     this.port = type.number(config.port)
  7.     this.db = {
  8.       name: type.string(config.db.name),
  9.       user: type.string(config.db.user),
  10.       password: type.string(config.db.password),
  11.       port: type.string(config.db.port)
  12.     }
  13.   }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement