Skip to main content Link Search Menu Expand Document (external link)

NodeSink.ts overview

Since v1.0.0


Exports Grouped by Category


constructor

fromWritable

Signature

declare const fromWritable: <E, A = string | Uint8Array<ArrayBufferLike>>(
  evaluate: LazyArg<Writable | NodeJS.WritableStream>,
  onError: (error: unknown) => E,
  options?: FromWritableOptions
) => Sink<void, A, never, E>

Source

Since v1.0.0

fromWritableChannel

Signature

declare const fromWritableChannel: <IE, OE, A>(
  writable: LazyArg<Writable | NodeJS.WritableStream>,
  onError: (error: unknown) => OE,
  options?: FromWritableOptions
) => Channel<Chunk<never>, Chunk<A>, IE | OE, IE, void, unknown>

Source

Since v1.0.0