208 lines
5.4 KiB
TypeScript
208 lines
5.4 KiB
TypeScript
/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
/////////////////////////////
|
|
/// DOM Iterable APIs
|
|
/////////////////////////////
|
|
|
|
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
|
|
}
|
|
|
|
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 DOMRectList {
|
|
[Symbol.iterator](): IterableIterator<DOMRect>;
|
|
}
|
|
|
|
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 FormData {
|
|
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the list.
|
|
*/
|
|
entries(): IterableIterator<[string, FormDataEntryValue]>;
|
|
/**
|
|
* Returns a list of keys in the list.
|
|
*/
|
|
keys(): IterableIterator<string>;
|
|
/**
|
|
* Returns a list of values in the list.
|
|
*/
|
|
values(): IterableIterator<FormDataEntryValue>;
|
|
}
|
|
|
|
interface HTMLAllCollection {
|
|
[Symbol.iterator](): IterableIterator<Element>;
|
|
}
|
|
|
|
interface HTMLCollectionBase {
|
|
[Symbol.iterator](): IterableIterator<Element>;
|
|
}
|
|
|
|
interface HTMLCollectionOf<T extends Element> {
|
|
[Symbol.iterator](): IterableIterator<T>;
|
|
entries(): IterableIterator<[number, T]>;
|
|
keys(): IterableIterator<number>;
|
|
values(): IterableIterator<T>;
|
|
}
|
|
|
|
interface HTMLSelectElement {
|
|
[Symbol.iterator](): IterableIterator<Element>;
|
|
}
|
|
|
|
interface Headers {
|
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
/**
|
|
* Returns an iterator allowing to go through all key/value pairs contained in this object.
|
|
*/
|
|
entries(): IterableIterator<[string, string]>;
|
|
/**
|
|
* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
|
|
*/
|
|
keys(): IterableIterator<string>;
|
|
/**
|
|
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
|
|
*/
|
|
values(): IterableIterator<string>;
|
|
}
|
|
|
|
interface MediaList {
|
|
[Symbol.iterator](): IterableIterator<string>;
|
|
}
|
|
|
|
interface MimeTypeArray {
|
|
[Symbol.iterator](): IterableIterator<Plugin>;
|
|
}
|
|
|
|
interface NamedNodeMap {
|
|
[Symbol.iterator](): IterableIterator<Attr>;
|
|
}
|
|
|
|
interface NodeList {
|
|
[Symbol.iterator](): IterableIterator<Node>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the list.
|
|
*/
|
|
entries(): IterableIterator<[number, Node]>;
|
|
/**
|
|
* Returns an list of keys in the list.
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
/**
|
|
* Returns an list of values in the list.
|
|
*/
|
|
values(): IterableIterator<Node>;
|
|
}
|
|
|
|
interface NodeListOf<TNode extends Node> {
|
|
[Symbol.iterator](): IterableIterator<TNode>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the list.
|
|
*/
|
|
entries(): IterableIterator<[number, TNode]>;
|
|
/**
|
|
* Returns an list of keys in the list.
|
|
*/
|
|
keys(): IterableIterator<number>;
|
|
/**
|
|
* Returns an list of values in the list.
|
|
*/
|
|
values(): IterableIterator<TNode>;
|
|
}
|
|
|
|
interface Plugin {
|
|
[Symbol.iterator](): IterableIterator<MimeType>;
|
|
}
|
|
|
|
interface PluginArray {
|
|
[Symbol.iterator](): IterableIterator<Plugin>;
|
|
}
|
|
|
|
interface RTCStatsReport extends ReadonlyMap<string, any> {
|
|
}
|
|
|
|
interface SourceBufferList {
|
|
[Symbol.iterator](): IterableIterator<SourceBuffer>;
|
|
}
|
|
|
|
interface StyleSheetList {
|
|
[Symbol.iterator](): IterableIterator<StyleSheet>;
|
|
}
|
|
|
|
interface TextTrackCueList {
|
|
[Symbol.iterator](): IterableIterator<TextTrackCue>;
|
|
}
|
|
|
|
interface TextTrackList {
|
|
[Symbol.iterator](): IterableIterator<TextTrack>;
|
|
}
|
|
|
|
interface TouchList {
|
|
[Symbol.iterator](): IterableIterator<Touch>;
|
|
}
|
|
|
|
interface URLSearchParams {
|
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
/**
|
|
* Returns an array of key, value pairs for every entry in the search params.
|
|
*/
|
|
entries(): IterableIterator<[string, string]>;
|
|
/**
|
|
* Returns a list of keys in the search params.
|
|
*/
|
|
keys(): IterableIterator<string>;
|
|
/**
|
|
* Returns a list of values in the search params.
|
|
*/
|
|
values(): IterableIterator<string>;
|
|
}
|
|
|
|
interface VideoTrackList {
|
|
[Symbol.iterator](): IterableIterator<VideoTrack>;
|
|
}
|