Skip to content

Commit 6fbaeeb

Browse files
sandersnsirian
andauthored
Typo at Uint8Array[Symbol.toStringTag] (microsoft#37989)
* Update es2015.symbol.wellknown.d.ts * Update baselines Co-authored-by: sirian <[email protected]>
1 parent 583e70b commit 6fbaeeb

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

src/lib/es2015.symbol.wellknown.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ interface Int8Array {
254254
}
255255

256256
interface Uint8Array {
257-
readonly [Symbol.toStringTag]: "UInt8Array";
257+
readonly [Symbol.toStringTag]: "Uint8Array";
258258
}
259259

260260
interface Uint8ClampedArray {

tests/baselines/reference/typedArraysCrossAssignability01.errors.txt

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
tests/cases/compiler/typedArraysCrossAssignability01.ts(13,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Int8Array'.
22
Types of property '[Symbol.toStringTag]' are incompatible.
3-
Type '"UInt8Array"' is not assignable to type '"Int8Array"'.
3+
Type '"Uint8Array"' is not assignable to type '"Int8Array"'.
44
tests/cases/compiler/typedArraysCrossAssignability01.ts(14,5): error TS2322: Type 'Int16Array' is not assignable to type 'Int8Array'.
55
Types of property '[Symbol.toStringTag]' are incompatible.
66
Type '"Int16Array"' is not assignable to type '"Int8Array"'.
@@ -24,34 +24,34 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(20,5): error TS2322: Typ
2424
Type '"Uint8ClampedArray"' is not assignable to type '"Int8Array"'.
2525
tests/cases/compiler/typedArraysCrossAssignability01.ts(22,5): error TS2322: Type 'Int8Array' is not assignable to type 'Uint8Array'.
2626
Types of property '[Symbol.toStringTag]' are incompatible.
27-
Type '"Int8Array"' is not assignable to type '"UInt8Array"'.
27+
Type '"Int8Array"' is not assignable to type '"Uint8Array"'.
2828
tests/cases/compiler/typedArraysCrossAssignability01.ts(24,5): error TS2322: Type 'Int16Array' is not assignable to type 'Uint8Array'.
2929
Types of property '[Symbol.toStringTag]' are incompatible.
30-
Type '"Int16Array"' is not assignable to type '"UInt8Array"'.
30+
Type '"Int16Array"' is not assignable to type '"Uint8Array"'.
3131
tests/cases/compiler/typedArraysCrossAssignability01.ts(25,5): error TS2322: Type 'Uint16Array' is not assignable to type 'Uint8Array'.
3232
Types of property '[Symbol.toStringTag]' are incompatible.
33-
Type '"Uint16Array"' is not assignable to type '"UInt8Array"'.
33+
Type '"Uint16Array"' is not assignable to type '"Uint8Array"'.
3434
tests/cases/compiler/typedArraysCrossAssignability01.ts(26,5): error TS2322: Type 'Int32Array' is not assignable to type 'Uint8Array'.
3535
Types of property '[Symbol.toStringTag]' are incompatible.
36-
Type '"Int32Array"' is not assignable to type '"UInt8Array"'.
36+
Type '"Int32Array"' is not assignable to type '"Uint8Array"'.
3737
tests/cases/compiler/typedArraysCrossAssignability01.ts(27,5): error TS2322: Type 'Uint32Array' is not assignable to type 'Uint8Array'.
3838
Types of property '[Symbol.toStringTag]' are incompatible.
39-
Type '"Uint32Array"' is not assignable to type '"UInt8Array"'.
39+
Type '"Uint32Array"' is not assignable to type '"Uint8Array"'.
4040
tests/cases/compiler/typedArraysCrossAssignability01.ts(28,5): error TS2322: Type 'Float32Array' is not assignable to type 'Uint8Array'.
4141
Types of property '[Symbol.toStringTag]' are incompatible.
42-
Type '"Float32Array"' is not assignable to type '"UInt8Array"'.
42+
Type '"Float32Array"' is not assignable to type '"Uint8Array"'.
4343
tests/cases/compiler/typedArraysCrossAssignability01.ts(29,5): error TS2322: Type 'Float64Array' is not assignable to type 'Uint8Array'.
4444
Types of property '[Symbol.toStringTag]' are incompatible.
45-
Type '"Float64Array"' is not assignable to type '"UInt8Array"'.
45+
Type '"Float64Array"' is not assignable to type '"Uint8Array"'.
4646
tests/cases/compiler/typedArraysCrossAssignability01.ts(30,5): error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Uint8Array'.
4747
Types of property '[Symbol.toStringTag]' are incompatible.
48-
Type '"Uint8ClampedArray"' is not assignable to type '"UInt8Array"'.
48+
Type '"Uint8ClampedArray"' is not assignable to type '"Uint8Array"'.
4949
tests/cases/compiler/typedArraysCrossAssignability01.ts(32,5): error TS2322: Type 'Int8Array' is not assignable to type 'Int16Array'.
5050
Types of property '[Symbol.toStringTag]' are incompatible.
5151
Type '"Int8Array"' is not assignable to type '"Int16Array"'.
5252
tests/cases/compiler/typedArraysCrossAssignability01.ts(33,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Int16Array'.
5353
Types of property '[Symbol.toStringTag]' are incompatible.
54-
Type '"UInt8Array"' is not assignable to type '"Int16Array"'.
54+
Type '"Uint8Array"' is not assignable to type '"Int16Array"'.
5555
tests/cases/compiler/typedArraysCrossAssignability01.ts(35,5): error TS2322: Type 'Uint16Array' is not assignable to type 'Int16Array'.
5656
Types of property '[Symbol.toStringTag]' are incompatible.
5757
Type '"Uint16Array"' is not assignable to type '"Int16Array"'.
@@ -75,7 +75,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(42,5): error TS2322: Typ
7575
Type '"Int8Array"' is not assignable to type '"Uint16Array"'.
7676
tests/cases/compiler/typedArraysCrossAssignability01.ts(43,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Uint16Array'.
7777
Types of property '[Symbol.toStringTag]' are incompatible.
78-
Type '"UInt8Array"' is not assignable to type '"Uint16Array"'.
78+
Type '"Uint8Array"' is not assignable to type '"Uint16Array"'.
7979
tests/cases/compiler/typedArraysCrossAssignability01.ts(44,5): error TS2322: Type 'Int16Array' is not assignable to type 'Uint16Array'.
8080
Types of property '[Symbol.toStringTag]' are incompatible.
8181
Type '"Int16Array"' is not assignable to type '"Uint16Array"'.
@@ -99,7 +99,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(52,5): error TS2322: Typ
9999
Type '"Int8Array"' is not assignable to type '"Int32Array"'.
100100
tests/cases/compiler/typedArraysCrossAssignability01.ts(53,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Int32Array'.
101101
Types of property '[Symbol.toStringTag]' are incompatible.
102-
Type '"UInt8Array"' is not assignable to type '"Int32Array"'.
102+
Type '"Uint8Array"' is not assignable to type '"Int32Array"'.
103103
tests/cases/compiler/typedArraysCrossAssignability01.ts(54,5): error TS2322: Type 'Int16Array' is not assignable to type 'Int32Array'.
104104
Types of property '[Symbol.toStringTag]' are incompatible.
105105
Type '"Int16Array"' is not assignable to type '"Int32Array"'.
@@ -123,7 +123,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(62,5): error TS2322: Typ
123123
Type '"Int8Array"' is not assignable to type '"Float32Array"'.
124124
tests/cases/compiler/typedArraysCrossAssignability01.ts(63,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Float32Array'.
125125
Types of property '[Symbol.toStringTag]' are incompatible.
126-
Type '"UInt8Array"' is not assignable to type '"Float32Array"'.
126+
Type '"Uint8Array"' is not assignable to type '"Float32Array"'.
127127
tests/cases/compiler/typedArraysCrossAssignability01.ts(64,5): error TS2322: Type 'Int16Array' is not assignable to type 'Float32Array'.
128128
Types of property '[Symbol.toStringTag]' are incompatible.
129129
Type '"Int16Array"' is not assignable to type '"Float32Array"'.
@@ -147,7 +147,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(72,5): error TS2322: Typ
147147
Type '"Int8Array"' is not assignable to type '"Float64Array"'.
148148
tests/cases/compiler/typedArraysCrossAssignability01.ts(73,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Float64Array'.
149149
Types of property '[Symbol.toStringTag]' are incompatible.
150-
Type '"UInt8Array"' is not assignable to type '"Float64Array"'.
150+
Type '"Uint8Array"' is not assignable to type '"Float64Array"'.
151151
tests/cases/compiler/typedArraysCrossAssignability01.ts(74,5): error TS2322: Type 'Int16Array' is not assignable to type 'Float64Array'.
152152
Types of property '[Symbol.toStringTag]' are incompatible.
153153
Type '"Int16Array"' is not assignable to type '"Float64Array"'.
@@ -171,7 +171,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(82,5): error TS2322: Typ
171171
Type '"Int8Array"' is not assignable to type '"Uint8ClampedArray"'.
172172
tests/cases/compiler/typedArraysCrossAssignability01.ts(83,5): error TS2322: Type 'Uint8Array' is not assignable to type 'Uint8ClampedArray'.
173173
Types of property '[Symbol.toStringTag]' are incompatible.
174-
Type '"UInt8Array"' is not assignable to type '"Uint8ClampedArray"'.
174+
Type '"Uint8Array"' is not assignable to type '"Uint8ClampedArray"'.
175175
tests/cases/compiler/typedArraysCrossAssignability01.ts(84,5): error TS2322: Type 'Int16Array' is not assignable to type 'Uint8ClampedArray'.
176176
Types of property '[Symbol.toStringTag]' are incompatible.
177177
Type '"Int16Array"' is not assignable to type '"Uint8ClampedArray"'.
@@ -209,7 +209,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(89,5): error TS2322: Typ
209209
~~~~~~~~~~~~~
210210
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Int8Array'.
211211
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
212-
!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Int8Array"'.
212+
!!! error TS2322: Type '"Uint8Array"' is not assignable to type '"Int8Array"'.
213213
arr_Int8Array = arr_Int16Array;
214214
~~~~~~~~~~~~~
215215
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Int8Array'.
@@ -250,43 +250,43 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(89,5): error TS2322: Typ
250250
~~~~~~~~~~~~~~
251251
!!! error TS2322: Type 'Int8Array' is not assignable to type 'Uint8Array'.
252252
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
253-
!!! error TS2322: Type '"Int8Array"' is not assignable to type '"UInt8Array"'.
253+
!!! error TS2322: Type '"Int8Array"' is not assignable to type '"Uint8Array"'.
254254
arr_Uint8Array = arr_Uint8Array;
255255
arr_Uint8Array = arr_Int16Array;
256256
~~~~~~~~~~~~~~
257257
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Uint8Array'.
258258
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
259-
!!! error TS2322: Type '"Int16Array"' is not assignable to type '"UInt8Array"'.
259+
!!! error TS2322: Type '"Int16Array"' is not assignable to type '"Uint8Array"'.
260260
arr_Uint8Array = arr_Uint16Array;
261261
~~~~~~~~~~~~~~
262262
!!! error TS2322: Type 'Uint16Array' is not assignable to type 'Uint8Array'.
263263
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
264-
!!! error TS2322: Type '"Uint16Array"' is not assignable to type '"UInt8Array"'.
264+
!!! error TS2322: Type '"Uint16Array"' is not assignable to type '"Uint8Array"'.
265265
arr_Uint8Array = arr_Int32Array;
266266
~~~~~~~~~~~~~~
267267
!!! error TS2322: Type 'Int32Array' is not assignable to type 'Uint8Array'.
268268
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
269-
!!! error TS2322: Type '"Int32Array"' is not assignable to type '"UInt8Array"'.
269+
!!! error TS2322: Type '"Int32Array"' is not assignable to type '"Uint8Array"'.
270270
arr_Uint8Array = arr_Uint32Array;
271271
~~~~~~~~~~~~~~
272272
!!! error TS2322: Type 'Uint32Array' is not assignable to type 'Uint8Array'.
273273
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
274-
!!! error TS2322: Type '"Uint32Array"' is not assignable to type '"UInt8Array"'.
274+
!!! error TS2322: Type '"Uint32Array"' is not assignable to type '"Uint8Array"'.
275275
arr_Uint8Array = arr_Float32Array;
276276
~~~~~~~~~~~~~~
277277
!!! error TS2322: Type 'Float32Array' is not assignable to type 'Uint8Array'.
278278
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
279-
!!! error TS2322: Type '"Float32Array"' is not assignable to type '"UInt8Array"'.
279+
!!! error TS2322: Type '"Float32Array"' is not assignable to type '"Uint8Array"'.
280280
arr_Uint8Array = arr_Float64Array;
281281
~~~~~~~~~~~~~~
282282
!!! error TS2322: Type 'Float64Array' is not assignable to type 'Uint8Array'.
283283
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
284-
!!! error TS2322: Type '"Float64Array"' is not assignable to type '"UInt8Array"'.
284+
!!! error TS2322: Type '"Float64Array"' is not assignable to type '"Uint8Array"'.
285285
arr_Uint8Array = arr_Uint8ClampedArray;
286286
~~~~~~~~~~~~~~
287287
!!! error TS2322: Type 'Uint8ClampedArray' is not assignable to type 'Uint8Array'.
288288
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
289-
!!! error TS2322: Type '"Uint8ClampedArray"' is not assignable to type '"UInt8Array"'.
289+
!!! error TS2322: Type '"Uint8ClampedArray"' is not assignable to type '"Uint8Array"'.
290290

291291
arr_Int16Array = arr_Int8Array;
292292
~~~~~~~~~~~~~~
@@ -297,7 +297,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(89,5): error TS2322: Typ
297297
~~~~~~~~~~~~~~
298298
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Int16Array'.
299299
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
300-
!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Int16Array"'.
300+
!!! error TS2322: Type '"Uint8Array"' is not assignable to type '"Int16Array"'.
301301
arr_Int16Array = arr_Int16Array;
302302
arr_Int16Array = arr_Uint16Array;
303303
~~~~~~~~~~~~~~
@@ -339,7 +339,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(89,5): error TS2322: Typ
339339
~~~~~~~~~~~~~~~
340340
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Uint16Array'.
341341
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
342-
!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Uint16Array"'.
342+
!!! error TS2322: Type '"Uint8Array"' is not assignable to type '"Uint16Array"'.
343343
arr_Uint16Array = arr_Int16Array;
344344
~~~~~~~~~~~~~~~
345345
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Uint16Array'.
@@ -381,7 +381,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(89,5): error TS2322: Typ
381381
~~~~~~~~~~~~~~
382382
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Int32Array'.
383383
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
384-
!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Int32Array"'.
384+
!!! error TS2322: Type '"Uint8Array"' is not assignable to type '"Int32Array"'.
385385
arr_Int32Array = arr_Int16Array;
386386
~~~~~~~~~~~~~~
387387
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Int32Array'.
@@ -423,7 +423,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(89,5): error TS2322: Typ
423423
~~~~~~~~~~~~~~~~
424424
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Float32Array'.
425425
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
426-
!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Float32Array"'.
426+
!!! error TS2322: Type '"Uint8Array"' is not assignable to type '"Float32Array"'.
427427
arr_Float32Array = arr_Int16Array;
428428
~~~~~~~~~~~~~~~~
429429
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Float32Array'.
@@ -465,7 +465,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(89,5): error TS2322: Typ
465465
~~~~~~~~~~~~~~~~
466466
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Float64Array'.
467467
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
468-
!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Float64Array"'.
468+
!!! error TS2322: Type '"Uint8Array"' is not assignable to type '"Float64Array"'.
469469
arr_Float64Array = arr_Int16Array;
470470
~~~~~~~~~~~~~~~~
471471
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Float64Array'.
@@ -507,7 +507,7 @@ tests/cases/compiler/typedArraysCrossAssignability01.ts(89,5): error TS2322: Typ
507507
~~~~~~~~~~~~~~~~~~~~~
508508
!!! error TS2322: Type 'Uint8Array' is not assignable to type 'Uint8ClampedArray'.
509509
!!! error TS2322: Types of property '[Symbol.toStringTag]' are incompatible.
510-
!!! error TS2322: Type '"UInt8Array"' is not assignable to type '"Uint8ClampedArray"'.
510+
!!! error TS2322: Type '"Uint8Array"' is not assignable to type '"Uint8ClampedArray"'.
511511
arr_Uint8ClampedArray = arr_Int16Array;
512512
~~~~~~~~~~~~~~~~~~~~~
513513
!!! error TS2322: Type 'Int16Array' is not assignable to type 'Uint8ClampedArray'.

0 commit comments

Comments
 (0)