UNPKG

492 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class LogCollection {
4 constructor() {
5 this._logItems = [];
6 }
7 get items() {
8 return this._logItems;
9 }
10 add(item) {
11 if (item && Reflect.has(item, 'className')) {
12 this._logItems.push(item);
13 return;
14 }
15 throw new TypeError(`Not a log item: ${item}`);
16 }
17}
18exports.LogCollection = LogCollection;
19//# sourceMappingURL=logcollection.js.map
\No newline at end of file