vue-tdweb
Version:
Documentation is coming.
59 lines • 1.84 kB
JavaScript
import { UPDATE } from '@airgram/api';
var DollarTd = /** @class */ (function () {
function DollarTd(vm) {
var _this = this;
this.vm = vm;
this._authState = { _: null };
this._authStateUnsubscribe = this.on(UPDATE.updateAuthorizationState, function (authState) {
_this._authState = authState;
});
}
Object.defineProperty(DollarTd.prototype, "airgram", {
get: function () {
return this.provider.airgram;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DollarTd.prototype, "api", {
get: function () {
return this.airgram.api;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DollarTd.prototype, "authState", {
get: function () {
return this._authState;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DollarTd.prototype, "provider", {
get: function () {
return this.vm.$_tdProvider;
},
enumerable: true,
configurable: true
});
DollarTd.prototype._destroy = function () {
if (this._authStateUnsubscribe) {
this._authStateUnsubscribe();
}
};
DollarTd.prototype.emit = function (update) {
return this.airgram.emit(update);
};
DollarTd.prototype.off = function (eventName, handler) {
this.provider.off(eventName, handler);
};
DollarTd.prototype.on = function (eventName, handler) {
return this.provider.on(eventName, handler);
};
DollarTd.prototype.once = function (eventName, handler) {
return this.provider.once(eventName, handler);
};
return DollarTd;
}());
export { DollarTd };
//# sourceMappingURL=DollarTd.js.map