How to use the uno-js.SimpleObservable function in uno-js

To help you get started, we’ve selected a few uno-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github unosquare / uno-material-ui / dist / SnackbarService.js View on Github external
var _this = this;
        if (type === void 0) { type = 'success'; }
        return new Promise(function () {
            _this.snackbar = {
                isMobile: false,
                message: {
                    messageText: message,
                    messageType: type,
                },
                seconds: 5000,
            };
            _this.inform();
        });
    };
    return SnackbarService;
}(uno_js_1.SimpleObservable));
exports.snackbarService = new SnackbarService();
//# sourceMappingURL=SnackbarService.js.map

uno-js

JS/TS common used functions, zero dependencies

MIT
Latest version published 6 hours ago

Package Health Score

70 / 100
Full package analysis