1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | class 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 | }
|
18 | exports.LogCollection = LogCollection;
|
19 | //# sourceMappingURL=logcollection.js.map |
\ | No newline at end of file |