Skip to main content
TextDecoderStream - node__stream--web.d.ts - Node documentation
interface TextDecoderStream

Usage in Deno

```typescript import { type TextDecoderStream } from "node:node__stream--web.d.ts"; ```

Properties

readonly
encoding: string
Returns encoding's name, lower cased.
readonly
fatal: boolean
Returns `true` if error mode is "fatal", and `false` otherwise.
readonly
ignoreBOM: boolean
Returns `true` if ignore BOM flag is set, and `false` otherwise.
readonly
readable: ReadableStream<string>
readonly
[[Symbol.toStringTag]]: string
variable TextDecoderStream
`TextDecoderStream` class is a global reference for `import { TextDecoderStream } from 'node:stream/web'`. https://nodejs.org/api/globals.html#class-textdecoderstream

Type

globalThis extends { onmessage: any; TextDecoderStream: infer T; } ? T : stream/web