Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

TextDecoder

Constructors

new TextDecoder()

new TextDecoder(label, options): TextDecoder

Parameters

label?

string | undefined

options?

TextDecoderOptions | undefined

Returns

TextDecoder

Properties

encoding

readonly encoding: string


fatal

readonly fatal: boolean


ignoreBOM

readonly ignoreBOM: boolean

Methods

decode()

decode(input?: BufferSource | undefined, options?: TextDecodeOptions | undefined): string

Parameters

input?

BufferSource | undefined

options?

TextDecodeOptions | undefined

Returns

string


Last updated: Jul 22, 2026