api/classes/ref
Globals / Ref
Class: Ref<A>
A pure implementation of a state.
Type parameters
Name | Description |
---|---|
A | Type of state to be maintained |
Hierarchy
- Ref
Index
Accessors
Methods
Accessors
read
• get read(): QIO<A>
Defined in packages/core/lib/main/Ref.ts:15
Returns: QIO<A>
Methods
set
▸ set(a
: A): QIO<A>
Defined in packages/core/lib/main/Ref.ts:18
Parameters:
Name | Type |
---|---|
a | A |
Returns: QIO<A>
update
▸ update(ab
: (a: A) => A): QIO<A>
Defined in packages/core/lib/main/Ref.ts:21
Parameters:
Name | Type |
---|---|
ab | (a: A) => A |
Returns: QIO<A>
of
▸ Static
of<A>(a
: A): QIO<Ref<A>>
Defined in packages/core/lib/main/Ref.ts:11
Type parameters:
Name |
---|
A |
Parameters:
Name | Type |
---|---|
a | A |