@tsonic/js-globals 0.2.2 → 0.2.3

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 +4 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -29,7 +29,7 @@ declare global {
29
29
  /**
30
30
  * Returns the item located at the specified index.
31
31
  */
32
- [n: int]: T;
32
+ [n: number]: T;
33
33
 
34
34
  /**
35
35
  * Appends new elements to the end of an array, and returns the new length.
@@ -154,7 +154,7 @@ declare global {
154
154
 
155
155
  interface ReadonlyArray<T> {
156
156
  readonly length: int;
157
- readonly [n: int]: T;
157
+ readonly [n: number]: T;
158
158
  slice(start?: int, end?: int): T[];
159
159
  indexOf(searchElement: T, fromIndex?: int): int;
160
160
  lastIndexOf(searchElement: T, fromIndex?: int): int;
@@ -601,14 +601,14 @@ declare global {
601
601
  * Additional types
602
602
  */
603
603
  interface IArguments {
604
- [index: int]: any;
604
+ [index: number]: any;
605
605
  length: int;
606
606
  callee: Function;
607
607
  }
608
608
 
609
609
  interface ArrayLike<T> {
610
610
  readonly length: int;
611
- readonly [n: int]: T;
611
+ readonly [n: number]: T;
612
612
  }
613
613
  }
614
614
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/js-globals",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
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",