Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import type from '../type.mjs'
- export default class AppConfig {
- constructor (config) {
- this.logLevel = type.string(config.logLevel)
- this.port = type.number(config.port)
- this.db = {
- name: type.string(config.db.name),
- user: type.string(config.db.user),
- password: type.string(config.db.password),
- port: type.string(config.db.port)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement