Type parameters
-
T: (...args: any[]) => any
Constructors
constructor
- new IO<T>(effect: T): IO<T>
-
Type parameters
-
T: (...args: any[]) => any
Parameters
Returns IO<T>
Methods
chain
- chain<U>(fn: (value: ReturnType<T>) => U): U
-
Type parameters
Parameters
-
fn: (value: ReturnType<T>) => U
-
- (value: ReturnType<T>): U
Returns U
map
- map<U>(fn: (value: ReturnType<T>) => U): IO<() => U>
-
Type parameters
Parameters
-
fn: (value: ReturnType<T>) => U
-
- (value: ReturnType<T>): U
Returns IO<() => U>
Same like
map
, but... Result fromfn
function will not be wrapped up intoIO
.