Skip to content

WritableStream

[<Interface>]
type WritableStream =
    abstract member writable: bool with get, set
    abstract member ``end`` (str: string, encoding: BufferEncoding, ?cb: (unit -> unit)) : WritableStream
    abstract member ``end`` (data: Uint8Array, ?cb: (unit -> unit)) : WritableStream
    abstract member ``end`` (data: string, ?cb: (unit -> unit)) : WritableStream
    abstract member ``end`` (?cb: (unit -> unit)) : WritableStream
    abstract member write (str: string, encoding: BufferEncoding, ?cb: (Exception option -> unit)) : bool
    abstract member write (buffer: string, ?cb: (Exception option -> unit)) : bool
    abstract member write (buffer: Uint8Array, ?cb: (Exception option -> unit)) : bool
AssemblyGlutinum.Node
Inheritsobj \| null
ImplementsEventEmitter
Attributes[<AllowNullLiteral>] [<Interface>]

Properties

abstract member writable: bool with get, set

Methods

abstract member ``end`` (str: string, encoding: BufferEncoding, ?cb: (unit -> unit)) : WritableStream
abstract member ``end`` (data: Uint8Array, ?cb: (unit -> unit)) : WritableStream
abstract member ``end`` (data: string, ?cb: (unit -> unit)) : WritableStream
abstract member ``end`` (?cb: (unit -> unit)) : WritableStream
abstract member write (str: string, encoding: BufferEncoding, ?cb: (Exception option -> unit)) : bool
abstract member write (buffer: string, ?cb: (Exception option -> unit)) : bool
abstract member write (buffer: Uint8Array, ?cb: (Exception option -> unit)) : bool