Module / v2.0.0-beta.7
@typed/fx/RefOption
13 unique exports available through this public import path, including their members and aliases.
import * as RefOption from "@typed/fx/RefOption";
Constructors
function
Creates a new RefOption from an Option, Effect, or Fx.
Derived queries
variable
Filter the value inside the Option of a RefOption.
variable
FlatMap the value inside the Option of a RefOption.
variable
Get the value from the Option or use a fallback value.
variable
Map the value inside the Option of a RefOption.
Optional queries
variable
Get the value from the Option as a Filtered (fails if None).
State models
interface
A RefOption is a RefSubject specialized over an Option value.
State predicates
variable
Check if the current state of a RefOption contains a value.
variable
Check if the value inside the Option satisfies a predicate.
variable
Check if the current state of a RefOption is None.
variable
Check if the current state of a RefOption is Some.
State updates
variable
Set the current state of a RefOption to None.
variable
Set the current state of a RefOption to Some(value).