as-event-tracker
Version:
Logs events in the browser based on client interactions.
24 lines • 986 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 requestType_1 = require("../../validation/requestType");
var Events_1 = require("../../consts/Events");
var LoadEventRequest = (function () {
function LoadEventRequest(init) {
(0, requestType_1.validateRequestType)(Events_1.EventType.Load, typeof init, typeof this);
Object.assign(this, __assign(__assign({}, init), { eventType: Events_1.EventType.Load }));
}
return LoadEventRequest;
}());
exports.default = LoadEventRequest;
//# sourceMappingURL=LoadEventRequest.js.map
;