Merge pull request #3393 from SaschaNaz/es6dom
Adding iterators to DOM interfaces
This commit is contained in:
commit
29afea3f6c
2 changed files with 13 additions and 2 deletions
|
@ -149,7 +149,7 @@ var librarySourceMap = [
|
||||||
{ target: "lib.scriptHost.d.ts", sources: ["importcore.d.ts", "scriptHost.d.ts"], },
|
{ target: "lib.scriptHost.d.ts", sources: ["importcore.d.ts", "scriptHost.d.ts"], },
|
||||||
{ target: "lib.d.ts", sources: ["core.d.ts", "extensions.d.ts", "intl.d.ts", "dom.generated.d.ts", "webworker.importscripts.d.ts", "scriptHost.d.ts"], },
|
{ target: "lib.d.ts", sources: ["core.d.ts", "extensions.d.ts", "intl.d.ts", "dom.generated.d.ts", "webworker.importscripts.d.ts", "scriptHost.d.ts"], },
|
||||||
{ target: "lib.core.es6.d.ts", sources: ["core.d.ts", "es6.d.ts"]},
|
{ target: "lib.core.es6.d.ts", sources: ["core.d.ts", "es6.d.ts"]},
|
||||||
{ target: "lib.es6.d.ts", sources: ["core.d.ts", "es6.d.ts", "intl.d.ts", "dom.generated.d.ts", "webworker.importscripts.d.ts", "scriptHost.d.ts"]},
|
{ target: "lib.es6.d.ts", sources: ["core.d.ts", "es6.d.ts", "intl.d.ts", "dom.generated.d.ts", "dom.es6.d.ts", "webworker.importscripts.d.ts", "scriptHost.d.ts"] },
|
||||||
];
|
];
|
||||||
|
|
||||||
var libraryTargets = librarySourceMap.map(function (f) {
|
var libraryTargets = librarySourceMap.map(function (f) {
|
||||||
|
@ -690,4 +690,4 @@ task('tsc-instrumented', [loggedIOJsPath, instrumenterJsPath, tscFile], function
|
||||||
complete();
|
complete();
|
||||||
});
|
});
|
||||||
ex.run();
|
ex.run();
|
||||||
}, { async: true });
|
}, { async: true });
|
||||||
|
|
11
src/lib/dom.es6.d.ts
vendored
Normal file
11
src/lib/dom.es6.d.ts
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
interface DOMTokenList {
|
||||||
|
[Symbol.iterator](): IterableIterator<string>;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface NodeList {
|
||||||
|
[Symbol.iterator](): IterableIterator<Node>
|
||||||
|
}
|
||||||
|
|
||||||
|
interface NodeListOf<TNode extends Node> {
|
||||||
|
[Symbol.iterator](): IterableIterator<TNode>
|
||||||
|
}
|
Loading…
Reference in a new issue