Skip to content

Commit 5116cfa

Browse files
committed
Also webworker
1 parent 206d459 commit 5116cfa

8 files changed

+359
-350
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// This file's contents are now included in the main DOM types.
1+
// This file's contents are now included in the main types file.
22
// The file has been left for backward compatibility.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// This file's contents are now included in the main DOM types.
1+
// This file's contents are now included in the main types file.
22
// The file has been left for backward compatibility.
Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,2 @@
1-
/////////////////////////////
2-
/// Worker Async Iterable APIs
3-
/////////////////////////////
4-
5-
interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
6-
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
7-
}
8-
9-
interface FileSystemDirectoryHandle {
10-
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
11-
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
12-
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
13-
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
14-
}
15-
16-
interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
17-
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
18-
}
19-
20-
interface ReadableStream<R = any> {
21-
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
22-
values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
23-
}
1+
// This file's contents are now included in the main types file.
2+
// The file has been left for backward compatibility.

src/lib/webworker.generated.d.ts

Lines changed: 350 additions & 0 deletions
Large diffs are not rendered by default.

src/lib/webworker.iterable.generated.d.ts

Lines changed: 2 additions & 322 deletions
Large diffs are not rendered by default.

tests/baselines/reference/modularizeLibrary_Worker.iterable.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
for (const [key, entry] of new FormData()) {
55
>key : Symbol(key, Decl(modularizeLibrary_Worker.iterable.ts, 0, 12))
66
>entry : Symbol(entry, Decl(modularizeLibrary_Worker.iterable.ts, 0, 16))
7-
>FormData : Symbol(FormData, Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.iterable.d.ts, --, --))
7+
>FormData : Symbol(FormData, Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --))
88

99
entry;
1010
>entry : Symbol(entry, Decl(modularizeLibrary_Worker.iterable.ts, 0, 16))

tests/baselines/reference/verifyDefaultLib_webworker.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
=== Performance Stats ===
44
Type Count: 5,000
5-
Instantiation count: 1,000
5+
Instantiation count: 2,500
66

77
=== verifyDefaultLib_webworker.ts ===
88
var x: Worker;

tests/baselines/reference/webworkerIterable.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ importScripts("")
88
// This should not raise a compiler error
99
const f = new FormData()
1010
>f : Symbol(f, Decl(webworkerIterable.ts, 4, 5))
11-
>FormData : Symbol(FormData, Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.iterable.d.ts, --, --))
11+
>FormData : Symbol(FormData, Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --), Decl(lib.webworker.d.ts, --, --))
1212

1313
for (const element of f) {
1414
>element : Symbol(element, Decl(webworkerIterable.ts, 5, 10))

0 commit comments

Comments
 (0)