From 3a3fb9c8ab0c798a278f76d40de216fa96f6e2c4 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Wed, 14 May 2025 18:02:34 -0700 Subject: moar --- u/fn/either.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'u/fn') diff --git a/u/fn/either.ts b/u/fn/either.ts index eaf77fd..12240d0 100644 --- a/u/fn/either.ts +++ b/u/fn/either.ts @@ -1,4 +1,4 @@ -import type { Mapper, Supplier } from "./mod.ts"; +import type { Mapper, Supplier } from "@emprespresso/pengueno"; export interface IEither { mapBoth: ( @@ -21,7 +21,7 @@ export class Either implements IEither { return Either.right(okBranch(this.ok!)); } - public flatMap(mapper: Mapper>) { + public flatMap(mapper: Mapper>): Either { if (this.ok) return mapper(this.ok); return Either.left(this.err!); } -- cgit v1.2.3-70-g09d2