finish refactor

This commit is contained in:
Rowan 2025-04-13 04:40:54 -05:00
parent 5d7d810d8d
commit 17a10b92f2
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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))))
}
/**