TextDecoder
Constructors
new TextDecoder()
new TextDecoder(
label,options): TextDecoder
Parameters
label?
string | undefined
options?
TextDecoderOptions | undefined
Returns
Properties
encoding
readonlyencoding:string
fatal
readonlyfatal:boolean
ignoreBOM
readonlyignoreBOM: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

