Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. export interface Config {
  2. userAgent: string
  3. refreshToken: string
  4. clientId: string
  5. }
  6.  
  7. export class ConfigLoader {
  8. config: Config
  9.  
  10. constructor() {
  11. try {
  12. this.config = require('../config.json') as Config
  13. } catch(ex) {
  14. console.log(ex)
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement