import { observable } from 'mobx/lib/mobx' ; import { Version , DockerFacade } from '../utils/DockerFacade' ; import { provideSingleton , inject } from '../utils/IOC' ; @ provideSingleton ( DockerSystemStore ) export class DockerSystemStore { @ inject ( DockerFacade ) private docker : DockerFacade ; @ observable version : Version ; async loadVersion ( ) { this . version = await this . docker . version ( ) ; } }