@tsonic/js-globals 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +6 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -150,6 +150,11 @@ declare global {
|
|
|
150
150
|
* Calls a defined callback function on each element of an array, and then flattens the result by one level.
|
|
151
151
|
*/
|
|
152
152
|
flatMap<U>(callback: (value: T, index: int, array: T[]) => U | U[]): U[];
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Returns an iterator over the array elements.
|
|
156
|
+
*/
|
|
157
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
153
158
|
}
|
|
154
159
|
|
|
155
160
|
interface ReadonlyArray<T> {
|
|
@@ -170,6 +175,7 @@ declare global {
|
|
|
170
175
|
concat(...items: (T | readonly T[])[]): T[];
|
|
171
176
|
join(separator?: string): string;
|
|
172
177
|
at(index: int): T | undefined;
|
|
178
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
173
179
|
}
|
|
174
180
|
|
|
175
181
|
interface ArrayConstructor {
|