Package: @effect/platform-browser
Module: BrowserStream
Creates a Stream from window.addEventListener.
Details
By default, the underlying buffer is unbounded in size. You can customize the
buffer size by passing an object as the second argument with the bufferSize
field.
Signature
declare const fromEventListenerWindow: <K extends keyof WindowEventMap>(type: K, options?: boolean | { readonly capture?: boolean; readonly passive?: boolean; readonly once?: boolean; readonly bufferSize?: number | undefined; } | undefined) => Stream.Stream<WindowEventMap[K], never, never>
Since v4.0.0