--- displayed_sidebar: jsClientSidebar --- # Interface: WritableStreamDefaultController [internal](../modules/internal-8.md).WritableStreamDefaultController This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. ## Methods ### error ▸ **error**(`e?`): `void` #### Parameters | Name | Type | | :------ | :------ | | `e?` | `any` | #### Returns `void` #### Defined in packages/medusa-js/node_modules/@types/node/stream/web.d.ts:247