-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from SaschaNaz/implicit-iterable
Support implicit iterable interfaces
- Loading branch information
Showing
4 changed files
with
160 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
|
||
///////////////////////////// | ||
/// DOM ES6 APIs | ||
///////////////////////////// | ||
|
||
interface AudioTrackList { | ||
[Symbol.iterator](): IterableIterator<AudioTrack> | ||
} | ||
|
||
interface CSSRuleList { | ||
[Symbol.iterator](): IterableIterator<CSSRule> | ||
} | ||
|
||
interface CSSStyleDeclaration { | ||
[Symbol.iterator](): IterableIterator<string> | ||
} | ||
|
||
interface ClientRectList { | ||
[Symbol.iterator](): IterableIterator<ClientRect> | ||
} | ||
|
||
interface DOMStringList { | ||
[Symbol.iterator](): IterableIterator<string> | ||
} | ||
|
||
interface DOMTokenList { | ||
[Symbol.iterator](): IterableIterator<string> | ||
} | ||
|
||
interface DataTransferItemList { | ||
[Symbol.iterator](): IterableIterator<File> | ||
} | ||
|
||
interface FileList { | ||
[Symbol.iterator](): IterableIterator<File> | ||
} | ||
|
||
interface HTMLAllCollection { | ||
[Symbol.iterator](): IterableIterator<Element> | ||
} | ||
|
||
interface HTMLCollection { | ||
[Symbol.iterator](): IterableIterator<Element> | ||
} | ||
|
||
interface MSRangeCollection { | ||
[Symbol.iterator](): IterableIterator<Range> | ||
} | ||
|
||
interface MediaList { | ||
[Symbol.iterator](): IterableIterator<string> | ||
} | ||
|
||
interface MimeTypeArray { | ||
[Symbol.iterator](): IterableIterator<Plugin> | ||
} | ||
|
||
interface NamedNodeMap { | ||
[Symbol.iterator](): IterableIterator<Attr> | ||
} | ||
|
||
interface NodeList { | ||
[Symbol.iterator](): IterableIterator<Node> | ||
} | ||
|
||
interface Plugin { | ||
[Symbol.iterator](): IterableIterator<MimeType> | ||
} | ||
|
||
interface PluginArray { | ||
[Symbol.iterator](): IterableIterator<Plugin> | ||
} | ||
|
||
interface SourceBufferList { | ||
[Symbol.iterator](): IterableIterator<SourceBuffer> | ||
} | ||
|
||
interface Storage { | ||
[Symbol.iterator](): IterableIterator<string> | ||
} | ||
|
||
interface StyleSheetList { | ||
[Symbol.iterator](): IterableIterator<StyleSheet> | ||
} | ||
|
||
interface StyleSheetPageList { | ||
[Symbol.iterator](): IterableIterator<CSSPageRule> | ||
} | ||
|
||
interface TextTrackCueList { | ||
[Symbol.iterator](): IterableIterator<TextTrackCue> | ||
} | ||
|
||
interface TextTrackList { | ||
[Symbol.iterator](): IterableIterator<TextTrack> | ||
} | ||
|
||
interface TouchList { | ||
[Symbol.iterator](): IterableIterator<Touch> | ||
} | ||
|
||
interface VideoTrackList { | ||
[Symbol.iterator](): IterableIterator<VideoTrack> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters