Skip to content

Commit

Permalink
fix dtslint
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed May 7, 2023
1 parent 95a905e commit e27a8d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/internal.ts
Expand Up @@ -141,7 +141,9 @@ export const liftNullable =
<A extends ReadonlyArray<unknown>, B, E>(f: (...a: A) => B | null | undefined, onNullable: (...a: A) => E) =>
<R, O>(...a: A): Kind<F, R, O, E, NonNullable<B>> => {
const o = f(...a)
return F.fromEither(o == null ? left(onNullable(...a)) : right(o))
return F.fromEither<R, O, E, NonNullable<B>>(
o == null ? left(onNullable(...a)) : right<NonNullable<B>, E>(o as any)
)
}

/** @internal */
Expand Down

0 comments on commit e27a8d0

Please sign in to comment.