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
|
---|
6 |
|
---|
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.
|
---|
11 |
|
---|
12 | See the Apache Version 2.0 License for specific language governing permissions
|
---|
13 | and limitations under the License.
|
---|
14 | ***************************************************************************** */
|
---|
15 |
|
---|
16 |
|
---|
17 |
|
---|
18 | /// <reference no-default-lib="true"/>
|
---|
19 |
|
---|
20 |
|
---|
21 | interface Array<T> {
|
---|
22 | /**
|
---|
23 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
24 | * @param searchElement The element to search for.
|
---|
25 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
26 | */
|
---|
27 | includes(searchElement: T, fromIndex?: number): boolean;
|
---|
28 | }
|
---|
29 |
|
---|
30 | interface ReadonlyArray<T> {
|
---|
31 | /**
|
---|
32 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
33 | * @param searchElement The element to search for.
|
---|
34 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
35 | */
|
---|
36 | includes(searchElement: T, fromIndex?: number): boolean;
|
---|
37 | }
|
---|
38 |
|
---|
39 | interface Int8Array {
|
---|
40 | /**
|
---|
41 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
42 | * @param searchElement The element to search for.
|
---|
43 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
44 | */
|
---|
45 | includes(searchElement: number, fromIndex?: number): boolean;
|
---|
46 | }
|
---|
47 |
|
---|
48 | interface Uint8Array {
|
---|
49 | /**
|
---|
50 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
51 | * @param searchElement The element to search for.
|
---|
52 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
53 | */
|
---|
54 | includes(searchElement: number, fromIndex?: number): boolean;
|
---|
55 | }
|
---|
56 |
|
---|
57 | interface Uint8ClampedArray {
|
---|
58 | /**
|
---|
59 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
60 | * @param searchElement The element to search for.
|
---|
61 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
62 | */
|
---|
63 | includes(searchElement: number, fromIndex?: number): boolean;
|
---|
64 | }
|
---|
65 |
|
---|
66 | interface Int16Array {
|
---|
67 | /**
|
---|
68 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
69 | * @param searchElement The element to search for.
|
---|
70 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
71 | */
|
---|
72 | includes(searchElement: number, fromIndex?: number): boolean;
|
---|
73 | }
|
---|
74 |
|
---|
75 | interface Uint16Array {
|
---|
76 | /**
|
---|
77 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
78 | * @param searchElement The element to search for.
|
---|
79 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
80 | */
|
---|
81 | includes(searchElement: number, fromIndex?: number): boolean;
|
---|
82 | }
|
---|
83 |
|
---|
84 | interface Int32Array {
|
---|
85 | /**
|
---|
86 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
87 | * @param searchElement The element to search for.
|
---|
88 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
89 | */
|
---|
90 | includes(searchElement: number, fromIndex?: number): boolean;
|
---|
91 | }
|
---|
92 |
|
---|
93 | interface Uint32Array {
|
---|
94 | /**
|
---|
95 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
96 | * @param searchElement The element to search for.
|
---|
97 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
98 | */
|
---|
99 | includes(searchElement: number, fromIndex?: number): boolean;
|
---|
100 | }
|
---|
101 |
|
---|
102 | interface Float32Array {
|
---|
103 | /**
|
---|
104 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
105 | * @param searchElement The element to search for.
|
---|
106 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
107 | */
|
---|
108 | includes(searchElement: number, fromIndex?: number): boolean;
|
---|
109 | }
|
---|
110 |
|
---|
111 | interface Float64Array {
|
---|
112 | /**
|
---|
113 | * Determines whether an array includes a certain element, returning true or false as appropriate.
|
---|
114 | * @param searchElement The element to search for.
|
---|
115 | * @param fromIndex The position in this array at which to begin searching for searchElement.
|
---|
116 | */
|
---|
117 | includes(searchElement: number, fromIndex?: number): boolean;
|
---|
118 | } |
---|