reactronic 0.96.26005 → 0.96.26006
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,6 +12,8 @@ export declare class LinkedList<T extends LinkedItem<T>> {
|
|
|
12
12
|
get renovation(): LinkedListRenovation<T>;
|
|
13
13
|
get isRenovationInProgress(): boolean;
|
|
14
14
|
get count(): number;
|
|
15
|
+
get firstItem(): T | undefined;
|
|
16
|
+
get lastItem(): T | undefined;
|
|
15
17
|
items(): Generator<T>;
|
|
16
18
|
tryLookup(key: string): T | undefined;
|
|
17
19
|
lookup(key: string): T;
|
|
@@ -26,6 +26,12 @@ export class LinkedList {
|
|
|
26
26
|
var _a, _b;
|
|
27
27
|
return this.items$.count + ((_b = (_a = this.renovation$) === null || _a === void 0 ? void 0 : _a.lostItemCount) !== null && _b !== void 0 ? _b : 0);
|
|
28
28
|
}
|
|
29
|
+
get firstItem() {
|
|
30
|
+
return this.items$.first;
|
|
31
|
+
}
|
|
32
|
+
get lastItem() {
|
|
33
|
+
return this.items$.last;
|
|
34
|
+
}
|
|
29
35
|
items() {
|
|
30
36
|
return this.items$.items();
|
|
31
37
|
}
|