Module / v2.0.0-beta.13

@typed/fx/RefResult

12 unique exports available through this public import path, including their members and aliases.

import * as RefResult from "@typed/fx/RefResult";

Constructors

  • make

    function

    Creates a new RefResult from a Result, Effect, or Fx.

Derived queries

  • flatMap

    variable

    FlatMap the success value of a RefResult.

  • map

    variable

    Map the success value of a RefResult.

  • mapError

    variable

    Map the error value of a RefResult.

  • match

    variable

    Match on the Result value.

Optional queries

  • getFailure

    variable

    Get the failure value from the Result as a Filtered (fails if Success).

  • getSuccess

    variable

    Get the success value from the Result as a Filtered (fails if Failure).

State models

  • RefResult

    interface

    A RefResult is a RefSubject specialized over a Result value.

State predicates

  • isFailure

    variable

    Check if the current state of a RefResult is Failure.

  • isSuccess

    variable

    Check if the current state of a RefResult is Success.

State updates

  • setFailure

    variable

    Set the current state of a RefResult to Failure(error).

  • setSuccess

    variable

    Set the current state of a RefResult to Success(value).