Skip to content

Commit 30d9bc2

Browse files
committed
Revert "add types for iterator helpers proposal"
This reverts commit bd51b00. (and subsequent commits)
1 parent 4449c82 commit 30d9bc2

File tree

70 files changed

+72
-838
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+72
-838
lines changed

src/compiler/commandLineParser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ const libEntries: [string, string][] = [
236236
["esnext.object", "lib.esnext.object.d.ts"],
237237
["esnext.array", "lib.esnext.array.d.ts"],
238238
["esnext.regexp", "lib.esnext.regexp.d.ts"],
239-
["esnext.iterator", "lib.esnext.iterator.d.ts"],
240239
["decorators", "lib.decorators.d.ts"],
241240
["decorators.legacy", "lib.decorators.legacy.d.ts"],
242241
];

src/lib/esnext.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@
77
/// <reference lib="esnext.collection" />
88
/// <reference lib="esnext.array" />
99
/// <reference lib="esnext.regexp" />
10-
/// <reference lib="esnext.iterator" />

src/lib/esnext.iterator.d.ts

Lines changed: 0 additions & 133 deletions
This file was deleted.

src/lib/libs.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
"esnext.collection",
8080
"esnext.array",
8181
"esnext.regexp",
82-
"esnext.iterator",
8382
"decorators",
8483
"decorators.legacy",
8584
// Default libraries

tests/baselines/reference/arrayFromAsync.symbols

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ for await (const v of asyncGen(4)) {
8282
const sameArr1 = await Array.fromAsync(arrLike);
8383
>sameArr1 : Symbol(sameArr1, Decl(arrayFromAsync.ts, 25, 5))
8484
>Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
85-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 5 more)
85+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
8686
>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
8787
>arrLike : Symbol(arrLike, Decl(arrayFromAsync.ts, 12, 5))
8888

8989
const sameArr2 = await Array.fromAsync([Promise.resolve(0), Promise.resolve(2), Promise.resolve(4), Promise.resolve(6)]);
9090
>sameArr2 : Symbol(sameArr2, Decl(arrayFromAsync.ts, 26, 5))
9191
>Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
92-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 5 more)
92+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
9393
>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
9494
>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
9595
>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
@@ -107,14 +107,14 @@ const sameArr2 = await Array.fromAsync([Promise.resolve(0), Promise.resolve(2),
107107
const sameArr3 = await Array.fromAsync(genPromises(4));
108108
>sameArr3 : Symbol(sameArr3, Decl(arrayFromAsync.ts, 27, 5))
109109
>Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
110-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 5 more)
110+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
111111
>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
112112
>genPromises : Symbol(genPromises, Decl(arrayFromAsync.ts, 4, 3))
113113

114114
const sameArr4 = await Array.fromAsync(asyncGen(4));
115115
>sameArr4 : Symbol(sameArr4, Decl(arrayFromAsync.ts, 28, 5))
116116
>Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
117-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 5 more)
117+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
118118
>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
119119
>asyncGen : Symbol(asyncGen, Decl(arrayFromAsync.ts, 0, 11))
120120

@@ -127,7 +127,7 @@ Data.fromAsync = Array.fromAsync;
127127
>Data : Symbol(Data, Decl(arrayFromAsync.ts, 28, 52), Decl(arrayFromAsync.ts, 30, 20))
128128
>fromAsync : Symbol(Data.fromAsync, Decl(arrayFromAsync.ts, 30, 20))
129129
>Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
130-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 5 more)
130+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
131131
>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
132132

133133
const sameArr5 = await Data.fromAsync(asyncGen(4));
@@ -140,7 +140,7 @@ const sameArr5 = await Data.fromAsync(asyncGen(4));
140140
const mapArr1 = await Array.fromAsync(asyncGen(4), v => v ** 2);
141141
>mapArr1 : Symbol(mapArr1, Decl(arrayFromAsync.ts, 34, 5))
142142
>Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
143-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 5 more)
143+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
144144
>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
145145
>asyncGen : Symbol(asyncGen, Decl(arrayFromAsync.ts, 0, 11))
146146
>v : Symbol(v, Decl(arrayFromAsync.ts, 34, 50))
@@ -149,7 +149,7 @@ const mapArr1 = await Array.fromAsync(asyncGen(4), v => v ** 2);
149149
const mapArr2 = await Array.fromAsync([0,2,4,6], v => Promise.resolve(v ** 2));
150150
>mapArr2 : Symbol(mapArr2, Decl(arrayFromAsync.ts, 35, 5))
151151
>Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
152-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 5 more)
152+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
153153
>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
154154
>v : Symbol(v, Decl(arrayFromAsync.ts, 35, 48))
155155
>Promise.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
@@ -160,7 +160,7 @@ const mapArr2 = await Array.fromAsync([0,2,4,6], v => Promise.resolve(v ** 2));
160160
const mapArr3 = await Array.fromAsync([0,2,4,6], v => v ** 2);
161161
>mapArr3 : Symbol(mapArr3, Decl(arrayFromAsync.ts, 36, 5))
162162
>Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
163-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 5 more)
163+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
164164
>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
165165
>v : Symbol(v, Decl(arrayFromAsync.ts, 36, 48))
166166
>v : Symbol(v, Decl(arrayFromAsync.ts, 36, 48))
@@ -181,7 +181,7 @@ const badIterable = { [Symbol.iterator] () { throw err; } };
181181
const badArray = await Array.fromAsync(badIterable);
182182
>badArray : Symbol(badArray, Decl(arrayFromAsync.ts, 41, 5))
183183
>Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
184-
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 5 more)
184+
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
185185
>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
186186
>badIterable : Symbol(badIterable, Decl(arrayFromAsync.ts, 39, 5))
187187

tests/baselines/reference/awaitedType.types

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//// [tests/cases/compiler/awaitedType.ts] ////
22

33
=== Performance Stats ===
4-
Type Count: 1,000
54
Instantiation count: 25,000
65

76
=== awaitedType.ts ===

tests/baselines/reference/bundlerDirectoryModule(moduleresolution=bundler).trace.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,21 +1074,6 @@
10741074
"======== Module name '@typescript/lib-esnext/regexp' was not resolved. ========",
10751075
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
10761076
"File '/package.json' does not exist according to earlier cached lookups.",
1077-
"======== Resolving module '@typescript/lib-esnext/iterator' from '/.src/__lib_node_modules_lookup_lib.esnext.iterator.d.ts__.ts'. ========",
1078-
"Explicitly specified module resolution kind: 'Node10'.",
1079-
"Loading module '@typescript/lib-esnext/iterator' from 'node_modules' folder, target file types: TypeScript, Declaration.",
1080-
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.",
1081-
"Directory '/.src/node_modules' does not exist, skipping all lookups in it.",
1082-
"Scoped package detected, looking in 'typescript__lib-esnext/iterator'",
1083-
"Directory '/node_modules' does not exist, skipping all lookups in it.",
1084-
"Scoped package detected, looking in 'typescript__lib-esnext/iterator'",
1085-
"Loading module '@typescript/lib-esnext/iterator' from 'node_modules' folder, target file types: JavaScript.",
1086-
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.",
1087-
"Directory '/.src/node_modules' does not exist, skipping all lookups in it.",
1088-
"Directory '/node_modules' does not exist, skipping all lookups in it.",
1089-
"======== Module name '@typescript/lib-esnext/iterator' was not resolved. ========",
1090-
"File '/.ts/package.json' does not exist according to earlier cached lookups.",
1091-
"File '/package.json' does not exist according to earlier cached lookups.",
10921077
"======== Resolving module '@typescript/lib-dom' from '/.src/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========",
10931078
"Explicitly specified module resolution kind: 'Node10'.",
10941079
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",

0 commit comments

Comments
 (0)