Skip to content

Commit a3bbe0e

Browse files
crisbetojkrems
authored andcommitted
refactor(@angular-devkit/core): fix up internal typings
Resolves some type errors that showed up internally.
1 parent f6b7cd9 commit a3bbe0e

File tree

5 files changed

+12
-31
lines changed

5 files changed

+12
-31
lines changed

goldens/public-api/angular_devkit/core/index.api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,15 +564,15 @@ export class PartiallyOrderedSet<T> implements Set<T> {
564564
clear(): void;
565565
// (undocumented)
566566
delete(item: T): boolean;
567-
entries(): IterableIterator<[T, T]>;
567+
entries(): SetIterator<[T, T]>;
568568
// (undocumented)
569569
forEach(callbackfn: (value: T, value2: T, set: PartiallyOrderedSet<T>) => void, thisArg?: any): void;
570570
// (undocumented)
571571
has(item: T): boolean;
572-
keys(): IterableIterator<T>;
572+
keys(): SetIterator<T>;
573573
// (undocumented)
574574
get size(): number;
575-
values(): IterableIterator<T>;
575+
values(): SetIterator<T>;
576576
}
577577

578578
// @public

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@
224224
}
225225
},
226226
"resolutions": {
227-
"@bazel/concatjs@npm:5.8.1": "patch:@bazel/concatjs@npm%3A5.8.1#~/.yarn/patches/@bazel-concatjs-npm-5.8.1-1bf81df846.patch"
227+
"@bazel/concatjs@npm:5.8.1": "patch:@bazel/concatjs@npm%3A5.8.1#~/.yarn/patches/@bazel-concatjs-npm-5.8.1-1bf81df846.patch",
228+
"@microsoft/api-extractor/typescript": "5.6.2"
228229
}
229230
}

packages/angular_devkit/core/src/utils/partially-ordered-set.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class PartiallyOrderedSet<T> implements Set<T> {
5151
/**
5252
* Returns an iterable of [v,v] pairs for every value `v` in the set.
5353
*/
54-
*entries(): IterableIterator<[T, T]> {
54+
*entries(): SetIterator<[T, T]> {
5555
for (const item of this) {
5656
yield [item, item];
5757
}
@@ -60,14 +60,14 @@ export class PartiallyOrderedSet<T> implements Set<T> {
6060
/**
6161
* Despite its name, returns an iterable of the values in the set,
6262
*/
63-
keys(): IterableIterator<T> {
63+
keys(): SetIterator<T> {
6464
return this.values();
6565
}
6666

6767
/**
6868
* Returns an iterable of values in the set.
6969
*/
70-
values(): IterableIterator<T> {
70+
values(): SetIterator<T> {
7171
return this[Symbol.iterator]();
7272
}
7373

packages/angular_devkit/core/src/workspace/definitions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,19 @@ class DefinitionCollection<V extends object> implements ReadonlyMap<string, V> {
8585
return this._map.size;
8686
}
8787

88-
[Symbol.iterator](): IterableIterator<[string, V]> {
88+
[Symbol.iterator](): MapIterator<[string, V]> {
8989
return this._map[Symbol.iterator]();
9090
}
9191

92-
entries(): IterableIterator<[string, V]> {
92+
entries(): MapIterator<[string, V]> {
9393
return this._map.entries();
9494
}
9595

96-
keys(): IterableIterator<string> {
96+
keys(): MapIterator<string> {
9797
return this._map.keys();
9898
}
9999

100-
values(): IterableIterator<V> {
100+
values(): MapIterator<V> {
101101
return this._map.values();
102102
}
103103
}

yarn.lock

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16919,16 +16919,6 @@ __metadata:
1691916919
languageName: node
1692016920
linkType: hard
1692116921

16922-
"typescript@npm:5.4.2":
16923-
version: 5.4.2
16924-
resolution: "typescript@npm:5.4.2"
16925-
bin:
16926-
tsc: bin/tsc
16927-
tsserver: bin/tsserver
16928-
checksum: 10c0/583ff68cafb0c076695f72d61df6feee71689568179fb0d3a4834dac343df6b6ed7cf7b6f6c801fa52d43cd1d324e2f2d8ae4497b09f9e6cfe3d80a6d6c9ca52
16929-
languageName: node
16930-
linkType: hard
16931-
1693216922
"typescript@npm:5.6.2":
1693316923
version: 5.6.2
1693416924
resolution: "typescript@npm:5.6.2"
@@ -16949,16 +16939,6 @@ __metadata:
1694916939
languageName: node
1695016940
linkType: hard
1695116941

16952-
"typescript@patch:typescript@npm%3A5.4.2#optional!builtin<compat/typescript>":
16953-
version: 5.4.2
16954-
resolution: "typescript@patch:typescript@npm%3A5.4.2#optional!builtin<compat/typescript>::version=5.4.2&hash=5adc0c"
16955-
bin:
16956-
tsc: bin/tsc
16957-
tsserver: bin/tsserver
16958-
checksum: 10c0/fcf6658073d07283910d9a0e04b1d5d0ebc822c04dbb7abdd74c3151c7aa92fcddbac7d799404e358197222006ccdc4c0db219d223d2ee4ccd9e2b01333b49be
16959-
languageName: node
16960-
linkType: hard
16961-
1696216942
"typescript@patch:typescript@npm%3A5.6.2#optional!builtin<compat/typescript>":
1696316943
version: 5.6.2
1696416944
resolution: "typescript@patch:typescript@npm%3A5.6.2#optional!builtin<compat/typescript>::version=5.6.2&hash=74658d"

0 commit comments

Comments
 (0)