1 /*! *****************************************************************************
2 Copyright (c) Microsoft Corporation. All rights reserved.
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 this file except in compliance with the License. You may obtain a copy of the
5 License at http://www.apache.org/licenses/LICENSE-2.0
7 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10 MERCHANTABLITY OR NON-INFRINGEMENT.
12 See the Apache Version 2.0 License for specific language governing permissions
13 and limitations under the License.
14 ***************************************************************************** */
18 /// <reference no-default-lib="true"/>
\r
21 interface Array<T> {
\r
23 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
24 * @param searchElement The element to search for.
\r
25 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
27 includes(searchElement: T, fromIndex?: number): boolean;
\r
30 interface ReadonlyArray<T> {
\r
32 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
33 * @param searchElement The element to search for.
\r
34 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
36 includes(searchElement: T, fromIndex?: number): boolean;
\r
39 interface Int8Array {
\r
41 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
42 * @param searchElement The element to search for.
\r
43 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
45 includes(searchElement: number, fromIndex?: number): boolean;
\r
48 interface Uint8Array {
\r
50 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
51 * @param searchElement The element to search for.
\r
52 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
54 includes(searchElement: number, fromIndex?: number): boolean;
\r
57 interface Uint8ClampedArray {
\r
59 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
60 * @param searchElement The element to search for.
\r
61 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
63 includes(searchElement: number, fromIndex?: number): boolean;
\r
66 interface Int16Array {
\r
68 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
69 * @param searchElement The element to search for.
\r
70 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
72 includes(searchElement: number, fromIndex?: number): boolean;
\r
75 interface Uint16Array {
\r
77 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
78 * @param searchElement The element to search for.
\r
79 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
81 includes(searchElement: number, fromIndex?: number): boolean;
\r
84 interface Int32Array {
\r
86 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
87 * @param searchElement The element to search for.
\r
88 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
90 includes(searchElement: number, fromIndex?: number): boolean;
\r
93 interface Uint32Array {
\r
95 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
96 * @param searchElement The element to search for.
\r
97 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
99 includes(searchElement: number, fromIndex?: number): boolean;
\r
102 interface Float32Array {
\r
104 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
105 * @param searchElement The element to search for.
\r
106 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
108 includes(searchElement: number, fromIndex?: number): boolean;
\r
111 interface Float64Array {
\r
113 * Determines whether an array includes a certain element, returning true or false as appropriate.
\r
114 * @param searchElement The element to search for.
\r
115 * @param fromIndex The position in this array at which to begin searching for searchElement.
\r
117 includes(searchElement: number, fromIndex?: number): boolean;
\r