@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.
- package/index.d.ts +4 -4
- 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:
|
|
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:
|
|
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:
|
|
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:
|
|
611
|
+
readonly [n: number]: T;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
|