class TextDecoderConstructorsnewTextDecoder(label?: string, options?: TextDecoderOptions)Propertiesreadonlyencoding: stringReturns encoding's name, lowercased. readonlyfatal: booleanReturns true if error mode is "fatal", and false otherwise. readonlyignoreBOM: booleanReturns true if ignore BOM flag is set, and false otherwise. Methodsdecode(input?: BufferSource, options?: TextDecodeOptions): stringReturns the result of running encoding's decoder.