innertuber-rn
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
17 lines • 721 B
JavaScript
var _CustomEvent_detail;
import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
// See https://github.com/nodejs/node/issues/40678#issuecomment-1126944677
class CustomEvent extends Event {
constructor(type, options) {
var _a;
super(type, options);
_CustomEvent_detail.set(this, void 0);
__classPrivateFieldSet(this, _CustomEvent_detail, (_a = options === null || options === void 0 ? void 0 : options.detail) !== null && _a !== void 0 ? _a : null, "f");
}
get detail() {
return __classPrivateFieldGet(this, _CustomEvent_detail, "f");
}
}
_CustomEvent_detail = new WeakMap();
export default CustomEvent;
//# sourceMappingURL=node-custom-event.js.map