@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.
Files changed (2) hide show
  1. package/index.d.ts +6 -0
  2. 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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/js-globals",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Global type definitions for Tsonic JS mode (noLib: true, JavaScript semantics)",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",