as-event-tracker
Version:
Logs events in the browser based on client interactions.
24 lines • 993 B
JavaScript
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
var Events_1 = require("../../consts/Events");
var requestType_1 = require("../../validation/requestType");
var TopicEventRequest = (function () {
function TopicEventRequest(init) {
(0, requestType_1.validateRequestType)(Events_1.EventType.Topic, typeof init, typeof this);
Object.assign(this, __assign(__assign({}, init), { eventType: Events_1.EventType.Topic }));
}
return TopicEventRequest;
}());
exports.default = TopicEventRequest;
//# sourceMappingURL=TopicEventRequest.js.map
;