Namespace: SpawnDev.SpawnJS.JSObjects
Source: JSObjects/TextDecoderStreamOptions.cs
MDN Reference: TextDecoderStreamOptions on MDN
TextDecoderStream options https://developer.mozilla.org/en-US/docs/Web/API/TextDecoderStream/TextDecoderStream#options
| Property | Type | Access | Description |
|---|---|---|---|
TextDecoderStreamOptions |
class |
get | TextDecoderStream options https://developer.mozilla.org/en-US/docs/Web/API/TextDecoderStream/TextDecoderStream#options |
IgnoreBOM |
bool? |
get |
SpawnDev.SpawnJS Mapping Note: The JavaScript examples below show the standard Web API usage. In SpawnDev.SpawnJS, the same API is available with C# conventions:
- Properties and methods use PascalCase (e.g.,
readyStatebecomesReadyState)- Events use ActionEvent with
+=/-=(e.g.,addEventListener("click", fn)becomesOnClick += handler)- Async methods return
Task<T>instead ofPromise<T>- Objects should be disposed with
usingstatements- Access via
JS.Get<TextDecoderStreamOptions>(...)or constructornew TextDecoderStreamOptions(...)
const response = await fetch("https://example.com");
const stream = response.body.pipeThrough(new TextDecoderStream());