js-flipper
Version:
Flipper bindings for Node.js and web
21 lines • 741 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.FlipperResponder = void 0;
var FlipperResponder = (function () {
function FlipperResponder(responderId, client) {
this.responderId = responderId;
this.client = client;
}
FlipperResponder.prototype.success = function (response) {
this.client.sendData({
id: this.responderId,
success: response == null ? null : response,
});
};
FlipperResponder.prototype.error = function (response) {
this.client.sendData({ id: this.responderId, error: response });
};
return FlipperResponder;
}());
exports.FlipperResponder = FlipperResponder;
//# sourceMappingURL=responder.js.map
;