mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Merge pull request #11023 from Microsoft/fix10002
Fix #10002: add dom.iterable to supported lib values
This commit is contained in:
10
tests/baselines/reference/modularizeLibrary_Dom.iterable.js
Normal file
10
tests/baselines/reference/modularizeLibrary_Dom.iterable.js
Normal file
@@ -0,0 +1,10 @@
|
||||
//// [modularizeLibrary_Dom.iterable.ts]
|
||||
|
||||
for (const element of document.getElementsByTagName("a")) {
|
||||
element.href;
|
||||
}
|
||||
|
||||
//// [modularizeLibrary_Dom.iterable.js]
|
||||
for (const element of document.getElementsByTagName("a")) {
|
||||
element.href;
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
6
tests/cases/compiler/modularizeLibrary_Dom.iterable.ts
Normal file
6
tests/cases/compiler/modularizeLibrary_Dom.iterable.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
// @lib: es6,dom,dom.iterable
|
||||
// @target: es6
|
||||
|
||||
for (const element of document.getElementsByTagName("a")) {
|
||||
element.href;
|
||||
}
|
||||
Reference in New Issue
Block a user