Skip to content

Commit a4dc0f3

Browse files
Added '[Symbol.toStringTag]' properties to type arrays.
1 parent 347359c commit a4dc0f3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/lib/es6.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,7 @@ interface Int8Array {
909909
*/
910910
values(): IterableIterator<number>;
911911
[Symbol.iterator](): IterableIterator<number>;
912+
[Symbol.toStringTag]: "Int8Array";
912913
}
913914

914915
interface Int8ArrayConstructor {
@@ -941,6 +942,7 @@ interface Uint8Array {
941942
*/
942943
values(): IterableIterator<number>;
943944
[Symbol.iterator](): IterableIterator<number>;
945+
[Symbol.toStringTag]: "UInt8Array";
944946
}
945947

946948
interface Uint8ArrayConstructor {
@@ -976,6 +978,7 @@ interface Uint8ClampedArray {
976978
values(): IterableIterator<number>;
977979

978980
[Symbol.iterator](): IterableIterator<number>;
981+
[Symbol.toStringTag]: "Uint8ClampedArray";
979982
}
980983

981984
interface Uint8ClampedArrayConstructor {
@@ -1013,6 +1016,7 @@ interface Int16Array {
10131016

10141017

10151018
[Symbol.iterator](): IterableIterator<number>;
1019+
[Symbol.toStringTag]: "Int16Array";
10161020
}
10171021

10181022
interface Int16ArrayConstructor {
@@ -1045,6 +1049,7 @@ interface Uint16Array {
10451049
*/
10461050
values(): IterableIterator<number>;
10471051
[Symbol.iterator](): IterableIterator<number>;
1052+
[Symbol.toStringTag]: "Uint16Array";
10481053
}
10491054

10501055
interface Uint16ArrayConstructor {
@@ -1077,6 +1082,7 @@ interface Int32Array {
10771082
*/
10781083
values(): IterableIterator<number>;
10791084
[Symbol.iterator](): IterableIterator<number>;
1085+
[Symbol.toStringTag]: "Int32Array";
10801086
}
10811087

10821088
interface Int32ArrayConstructor {
@@ -1109,6 +1115,7 @@ interface Uint32Array {
11091115
*/
11101116
values(): IterableIterator<number>;
11111117
[Symbol.iterator](): IterableIterator<number>;
1118+
[Symbol.toStringTag]: "Uint32Array";
11121119
}
11131120

11141121
interface Uint32ArrayConstructor {
@@ -1141,6 +1148,7 @@ interface Float32Array {
11411148
*/
11421149
values(): IterableIterator<number>;
11431150
[Symbol.iterator](): IterableIterator<number>;
1151+
[Symbol.toStringTag]: "Float32Array";
11441152
}
11451153

11461154
interface Float32ArrayConstructor {
@@ -1173,6 +1181,7 @@ interface Float64Array {
11731181
*/
11741182
values(): IterableIterator<number>;
11751183
[Symbol.iterator](): IterableIterator<number>;
1184+
[Symbol.toStringTag]: "Float64Array";
11761185
}
11771186

11781187
interface Float64ArrayConstructor {

0 commit comments

Comments
 (0)