UNPKG

youzanyun-devtool-worker

Version:

- web - ws - proxy

27 lines (26 loc) 778 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const spring4js_nodejs_1 = require("spring4js-nodejs"); let NotifyService = class NotifyService { constructor() { this._notifyEvent = new spring4js_nodejs_1.Emitter(); this.onNotifyEvent = this._notifyEvent.registerEvent; } async showLoading(workbenchId) { this._notifyEvent.fire({ workbenchId, type: "show-loading" }); } async closeLoading(workbenchId) { this._notifyEvent.fire({ workbenchId, type: "close-loading" }); } }; NotifyService = tslib_1.__decorate([ spring4js_nodejs_1.Service() ], NotifyService); exports.default = NotifyService;