reactronic 0.96.26005 → 0.96.26007
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,7 +12,9 @@ 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
|
-
|
|
15
|
+
get firstItem(): T | undefined;
|
|
16
|
+
get lastItem(): T | undefined;
|
|
17
|
+
items(after?: T): Generator<T>;
|
|
16
18
|
tryLookup(key: string): T | undefined;
|
|
17
19
|
lookup(key: string): T;
|
|
18
20
|
add(item: T, before?: T): void;
|
|
@@ -51,7 +53,7 @@ export declare class LinkedSubList<T extends LinkedItem<T>> {
|
|
|
51
53
|
count: number;
|
|
52
54
|
first?: T;
|
|
53
55
|
last?: T;
|
|
54
|
-
items(): Generator<T>;
|
|
56
|
+
items(after?: T): Generator<T>;
|
|
55
57
|
clear(): void;
|
|
56
58
|
grab(from: LinkedSubList<T>, join: boolean): void;
|
|
57
59
|
}
|
|
@@ -26,8 +26,14 @@ 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
|
-
|
|
30
|
-
return this.items$.
|
|
29
|
+
get firstItem() {
|
|
30
|
+
return this.items$.first;
|
|
31
|
+
}
|
|
32
|
+
get lastItem() {
|
|
33
|
+
return this.items$.last;
|
|
34
|
+
}
|
|
35
|
+
items(after) {
|
|
36
|
+
return this.items$.items(after);
|
|
31
37
|
}
|
|
32
38
|
tryLookup(key) {
|
|
33
39
|
return this.map.get(key);
|
|
@@ -201,8 +207,8 @@ export class LinkedSubList {
|
|
|
201
207
|
this.first = undefined;
|
|
202
208
|
this.last = undefined;
|
|
203
209
|
}
|
|
204
|
-
*items() {
|
|
205
|
-
let x = this.first;
|
|
210
|
+
*items(after) {
|
|
211
|
+
let x = after ? after.next : this.first;
|
|
206
212
|
while (x !== undefined) {
|
|
207
213
|
const next = x.next;
|
|
208
214
|
yield x;
|