Skip to content

Commit ed6539c

Browse files
Fix typo
1 parent f720939 commit ed6539c

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ export const getScriptTargetFeatures: () => ScriptTargetFeatures = /* @__PURE__
19141914
"cause",
19151915
],
19161916
})),
1917-
Uint8Constructor: new Map(Object.entries({
1917+
Uint8ArrayConstructor: new Map(Object.entries({
19181918
esnext: [
19191919
"fromBase64",
19201920
"fromHex",

tests/baselines/reference/toFromHexBase64(target=es2024).errors.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
toFromHexBase64.ts(1,25): error TS2339: Property 'fromBase64' does not exist on type 'Uint8ArrayConstructor'.
2-
toFromHexBase64.ts(2,25): error TS2339: Property 'fromBase64' does not exist on type 'Uint8ArrayConstructor'.
3-
toFromHexBase64.ts(3,25): error TS2339: Property 'fromHex' does not exist on type 'Uint8ArrayConstructor'.
1+
toFromHexBase64.ts(1,25): error TS2550: Property 'fromBase64' does not exist on type 'Uint8ArrayConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.
2+
toFromHexBase64.ts(2,25): error TS2550: Property 'fromBase64' does not exist on type 'Uint8ArrayConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.
3+
toFromHexBase64.ts(3,25): error TS2550: Property 'fromHex' does not exist on type 'Uint8ArrayConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.
44
toFromHexBase64.ts(12,20): error TS2550: Property 'setFromBase64' does not exist on type 'Uint8Array<ArrayBuffer>'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.
55
toFromHexBase64.ts(13,20): error TS2550: Property 'setFromBase64' does not exist on type 'Uint8Array<ArrayBuffer>'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.
66
toFromHexBase64.ts(14,20): error TS2550: Property 'setFromBase64' does not exist on type 'Uint8Array<ArrayBuffer>'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.
@@ -10,13 +10,13 @@ toFromHexBase64.ts(20,20): error TS2550: Property 'setFromHex' does not exist on
1010
==== toFromHexBase64.ts (7 errors) ====
1111
const arr1 = Uint8Array.fromBase64("AAAAAA==");
1212
~~~~~~~~~~
13-
!!! error TS2339: Property 'fromBase64' does not exist on type 'Uint8ArrayConstructor'.
13+
!!! error TS2550: Property 'fromBase64' does not exist on type 'Uint8ArrayConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.
1414
const arr2 = Uint8Array.fromBase64("AAAAAA", { alphabet: "base64url" });
1515
~~~~~~~~~~
16-
!!! error TS2339: Property 'fromBase64' does not exist on type 'Uint8ArrayConstructor'.
16+
!!! error TS2550: Property 'fromBase64' does not exist on type 'Uint8ArrayConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.
1717
const arr3 = Uint8Array.fromHex("000000");
1818
~~~~~~~
19-
!!! error TS2339: Property 'fromHex' does not exist on type 'Uint8ArrayConstructor'.
19+
!!! error TS2550: Property 'fromHex' does not exist on type 'Uint8ArrayConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.
2020

2121
const encodedBase64_1 = arr1.toBase64();
2222
const encodedBase64_2 = arr1.toBase64({ alphabet: "base64" });

0 commit comments

Comments
 (0)