Properties
modify
modify
: (modifier
: (currentValue
: A) => A) => IO<A, never>Type declaration
- (modifier: (currentValue: A) => A): IO<A, never>
Parameters
modifier: (currentValue: A) => A
Returns IO<A, never>
set
set
: (newValue
: A) => IO<void, never>Type declaration
- (newValue: A): IO<void, never>
Parameters
Returns IO<void, never>
Methods
Static create
- create<A>(initialValue: A): IO<Ref<A>, never>
Type parameters
Parameters
Returns IO<Ref<A>, never>
Static empty
- empty<A>(): IO<Ref<null | A>, never>
Type parameters
Returns IO<Ref<null | A>, never>
Static get
- get<A>(ref: Ref<A>): IO<A, never>
Type parameters
Parameters
Returns IO<A, never>
Static modify
- modify<A>(modifier: (currentValue: A) => A): (ref: Ref<A>) => IO<A, never>
Type parameters
Parameters
modifier: (currentValue: A) => A
Returns (ref: Ref<A>) => IO<A, never>
- (ref: Ref<A>): IO<A, never>
Parameters
Returns IO<A, never>
Static set
- set<A>(newValue: A): (ref: Ref<A>) => IO<void, never>
Type parameters
Parameters
Returns (ref: Ref<A>) => IO<void, never>
- (ref: Ref<A>): IO<void, never>
Parameters
Returns IO<void, never>