Skip to content

Commit

Permalink
fixed docgen
Browse files Browse the repository at this point in the history
  • Loading branch information
jessekelly881 committed Apr 16, 2024
1 parent 9dff6f7 commit 586ec66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion packages/effect/src/internal/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8047,7 +8047,7 @@ export const encodeText = <E, R>(self: Stream.Stream<string, E, R>): Stream.Stre
})

/** @internal */
export const fromEventListener = <A extends Event = Event>(
export const fromEventListener = <A = Event>(
target: EventTarget,
type: string,
options?: boolean | Omit<AddEventListenerOptions, "signal">
Expand Down
4 changes: 0 additions & 4 deletions packages/platform-browser/src/BrowserStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ import * as internal from "./internal/stream.js"
/**
* Creates a `Stream` from window.addEventListener.
* @since 1.0.0
* @example
*
* import { BrowserStream } from "@effect/platform-browser";
* BrowserStream.fromEventListenerWindow("keypress") // Stream<KeyboardEvent>
*/
export const fromEventListenerWindow: <K extends keyof WindowEventMap>(
type: K,
Expand Down

0 comments on commit 586ec66

Please sign in to comment.