Skip to content

Commit

Permalink
fix runtime type extends check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Smart committed Oct 25, 2023
1 parent 89bbdcc commit 29800d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-glasses-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect-rx/rx": patch
---

fix runtime type extends check
5 changes: 4 additions & 1 deletion packages/rx/src/Rx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,9 @@ export const runtime: {
<E, A>(layer: Layer.Layer<never, E, A>, options?: {
readonly autoDispose?: boolean
readonly idleTTL?: Duration.DurationInput
readonly runtime?: undefined
}): RxRuntime<E, A>
<R, E, A, RR extends R, RE>(layer: Layer.Layer<R, E, A>, options?: {
<RR, R extends RR, E, A, RE>(layer: Layer.Layer<R, E, A>, options?: {
readonly autoDispose?: boolean
readonly idleTTL?: Duration.DurationInput
readonly runtime: RxRuntime<RE, RR>
Expand Down Expand Up @@ -682,6 +683,7 @@ export const stream: {
export const streamFn: {
<Arg, E, A>(fn: Rx.ReadFn<Arg, Stream.Stream<never, E, A>>, options?: {
readonly initialValue?: A
readonly runtime?: undefined
}): RxResultFn<E | NoSuchElementException, A, Arg>
<Arg, RR, R extends RR, E, A, RE>(
fn: Rx.ReadFn<Arg, Stream.Stream<R, E, A>>,
Expand Down Expand Up @@ -727,6 +729,7 @@ export const streamPull: {
<E, A>(create: Rx.Read<Stream.Stream<never, E, A>>, options?: {
readonly disableAccumulation?: boolean
readonly initialValue?: ReadonlyArray<A>
readonly runtime?: undefined
}): Writable<StreamPullResult<E, A>, void>
<RR, R extends RR, E, A, RE>(
create: Rx.Read<Stream.Stream<R, E, A>>,
Expand Down

0 comments on commit 29800d5

Please sign in to comment.