Skip to content

Commit

Permalink
feat: update FormEntry to new RefSubject interface
Browse files Browse the repository at this point in the history
  • Loading branch information
TylorS committed Feb 19, 2024
1 parent 162b156 commit e1d4425
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/fx/src/FormEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { ParseOptions } from "@effect/schema/AST"
import { type ParseError } from "@effect/schema/ParseResult"
import type { Cause } from "effect/Cause"
import * as Effect from "effect/Effect"
import type { Exit } from "effect/Exit"
import type * as Scope from "effect/Scope"
import * as Fx from "./Fx.js"
import { FxEffectBase } from "./internal/protos.js"
Expand Down Expand Up @@ -188,6 +189,8 @@ class FromEntryImpl<R, E, I, O> extends FxEffectBase<I, E | ParseError, R | Scop
return this.ref.runUpdates(f)
}

unsafeGet: () => Exit<I, E | ParseError> = () => this.ref.unsafeGet()

onFailure(cause: Cause<E | ParseError>): Effect.Effect<unknown, never, R> {
return this.ref.onFailure(cause)
}
Expand Down

0 comments on commit e1d4425

Please sign in to comment.