finish refactor
This commit is contained in:
parent
5d7d810d8d
commit
17a10b92f2
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import { Algebra, Monad } from './interfaces.js'
|
||||
|
||||
/** @import { Apply, Chain, Fn, Functor, InferredMorphism, Morphism } from './types.js' */
|
||||
/** @import { Apply, Chain, Fn, Functor, Morphism } from './types.js' */
|
||||
|
||||
/** @template {Fn} T */
|
||||
export class IO extends Algebra(Monad) {
|
||||
|
|
|
@ -40,7 +40,7 @@ export class Reader extends Algebra(Monad) {
|
|||
* @returns {Reader<T>}
|
||||
*/
|
||||
map(f) {
|
||||
return this.chain(value => Reader.of(f(value)))
|
||||
return /** @type {Reader<any>} */ (this.chain(value => Reader.of(f(value))))
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue