/*! ***************************************************************************** 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. ***************************************************************************** */ /// /// interface DOMTokenList { [Symbol.iterator](): IterableIterator; } interface FormData { /** * Returns an array of key, value pairs for every entry in the list */ entries(): IterableIterator<[string, string | File]>; /** * Returns a list of keys in the list */ keys(): IterableIterator; /** * Returns a list of values in the list */ values(): IterableIterator; [Symbol.iterator](): IterableIterator; } interface NodeList { /** * Returns an array of key, value pairs for every entry in the list */ entries(): IterableIterator<[number, Node]>; /** * Performs the specified action for each node in an list. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: Node, index: number, listObj: NodeList) => void, thisArg?: any): void; /** * Returns an list of keys in the list */ keys(): IterableIterator; /** * Returns an list of values in the list */ values(): IterableIterator; [Symbol.iterator](): IterableIterator; } interface NodeListOf { /** * Returns an array of key, value pairs for every entry in the list */ entries(): IterableIterator<[number, TNode]>; /** * Performs the specified action for each node in an list. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list. * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: TNode, index: number, listObj: NodeListOf) => void, thisArg?: any): void; /** * Returns an list of keys in the list */ keys(): IterableIterator; /** * Returns an list of values in the list */ values(): IterableIterator; [Symbol.iterator](): IterableIterator; }