Commit a6be967
committed
Consistently use Promise<void> instead of Promise<undefined>
lib.dom.d.ts ubiquitously uses Promise<void> for promises not resolving
to undefined. It has done this for a long time.
When the generator was written, there were 0 or 1 (I can't quite tell)
places where this type of promise occured outside of a function return
value. However, Web Streams are now widely supported, and they have
properties that are promises that resolve to no value. These are
currently typed as Promise<undefined>. This commit changes them to be
typed as Promise<void>, to align with the rest of lib.dom.d.ts.
There are 5 readonly properties that are impacted by this change.1 parent 13115c8 commit a6be967
File tree
6 files changed
+27
-27
lines changed- baselines
- src/build
6 files changed
+27
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
835 | | - | |
| 835 | + | |
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
| |||
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
1124 | | - | |
| 1124 | + | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | 1127 | | |
1128 | | - | |
| 1128 | + | |
1129 | 1129 | | |
1130 | 1130 | | |
1131 | 1131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18564 | 18564 | | |
18565 | 18565 | | |
18566 | 18566 | | |
18567 | | - | |
| 18567 | + | |
18568 | 18568 | | |
18569 | 18569 | | |
18570 | 18570 | | |
| |||
25448 | 25448 | | |
25449 | 25449 | | |
25450 | 25450 | | |
25451 | | - | |
| 25451 | + | |
25452 | 25452 | | |
25453 | 25453 | | |
25454 | 25454 | | |
| |||
26055 | 26055 | | |
26056 | 26056 | | |
26057 | 26057 | | |
26058 | | - | |
| 26058 | + | |
26059 | 26059 | | |
26060 | 26060 | | |
26061 | 26061 | | |
26062 | | - | |
| 26062 | + | |
26063 | 26063 | | |
26064 | 26064 | | |
26065 | 26065 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
2475 | 2475 | | |
2476 | 2476 | | |
2477 | 2477 | | |
2478 | | - | |
| 2478 | + | |
2479 | 2479 | | |
2480 | 2480 | | |
2481 | 2481 | | |
| |||
4576 | 4576 | | |
4577 | 4577 | | |
4578 | 4578 | | |
4579 | | - | |
| 4579 | + | |
4580 | 4580 | | |
4581 | 4581 | | |
4582 | 4582 | | |
| |||
7793 | 7793 | | |
7794 | 7794 | | |
7795 | 7795 | | |
7796 | | - | |
| 7796 | + | |
7797 | 7797 | | |
7798 | 7798 | | |
7799 | 7799 | | |
| |||
8087 | 8087 | | |
8088 | 8088 | | |
8089 | 8089 | | |
8090 | | - | |
| 8090 | + | |
8091 | 8091 | | |
8092 | 8092 | | |
8093 | 8093 | | |
8094 | | - | |
| 8094 | + | |
8095 | 8095 | | |
8096 | 8096 | | |
8097 | 8097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4410 | 4410 | | |
4411 | 4411 | | |
4412 | 4412 | | |
4413 | | - | |
| 4413 | + | |
4414 | 4414 | | |
4415 | 4415 | | |
4416 | 4416 | | |
| |||
7608 | 7608 | | |
7609 | 7609 | | |
7610 | 7610 | | |
7611 | | - | |
| 7611 | + | |
7612 | 7612 | | |
7613 | 7613 | | |
7614 | 7614 | | |
| |||
7920 | 7920 | | |
7921 | 7921 | | |
7922 | 7922 | | |
7923 | | - | |
| 7923 | + | |
7924 | 7924 | | |
7925 | 7925 | | |
7926 | 7926 | | |
7927 | | - | |
| 7927 | + | |
7928 | 7928 | | |
7929 | 7929 | | |
7930 | 7930 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
2675 | 2675 | | |
2676 | 2676 | | |
2677 | 2677 | | |
2678 | | - | |
| 2678 | + | |
2679 | 2679 | | |
2680 | 2680 | | |
2681 | 2681 | | |
| |||
4851 | 4851 | | |
4852 | 4852 | | |
4853 | 4853 | | |
4854 | | - | |
| 4854 | + | |
4855 | 4855 | | |
4856 | 4856 | | |
4857 | 4857 | | |
| |||
8232 | 8232 | | |
8233 | 8233 | | |
8234 | 8234 | | |
8235 | | - | |
| 8235 | + | |
8236 | 8236 | | |
8237 | 8237 | | |
8238 | 8238 | | |
| |||
8565 | 8565 | | |
8566 | 8566 | | |
8567 | 8567 | | |
8568 | | - | |
| 8568 | + | |
8569 | 8569 | | |
8570 | 8570 | | |
8571 | 8571 | | |
8572 | | - | |
| 8572 | + | |
8573 | 8573 | | |
8574 | 8574 | | |
8575 | 8575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
| |||
356 | 359 | | |
357 | 360 | | |
358 | 361 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
0 commit comments