StreamDecoder
interface exported by @mwillbanks/tuil-streaming.
interface
Public interface exported by @mwillbanks/tuil-streaming.
export interface StreamDecoder {
readonly id: string;
write(chunk: Uint8Array | string): string;
flush(): string;
reset(): void;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
id | string | Yes | The id member uses the string contract. | — |
write | (chunk: Uint8Array | string) => string | Yes | The write member uses the (chunk: Uint8Array | string) => string contract. | — |
flush | () => string | Yes | The flush member uses the () => string contract. | — |
reset | () => void | Yes | The reset member uses the () => void contract. | — |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
No package-local related types.
Source
View the secondary source reference