Skip to content

base64/hex methods missing from Uint8ArrayΒ #61695

@dontwanttothink

Description

@dontwanttothink

πŸ”Ž Search Terms

  • toBase64

πŸ•— Version & Regression Information

  • This is the behavior in v5.9.0-dev.20250512.

⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.9.0-dev.20250512#code/KoSwdgLgHAggTnAhgTwHQDM4HsC2AhRAZwFMA2AFgAoBKAKFElgRQ2xwAliAPG+8aeEjQAHbBCwRkw4qhIQAYmwIkKvBgOYixEqTLmLcnHnXVMhqURJ3TU45WSon+ZlpfGSb4ozSA

πŸ’» Code

Uint8Array.fromBase64()
Uint8Array.fromHex()
Uint8Array.prototype.setFromBase64()
Uint8Array.prototype.setFromHex()
Uint8Array.prototype.toBase64()
Uint8Array.prototype.toHex()

πŸ™ Actual behavior

Property XXX does not exist … errors in each case.

πŸ™‚ Expected behavior

Correct type definitions should exist.

Additional information about the issue

These features have been implemented by every major JavaScript engine except V8.

See:

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions