Skip to content

Commit

Permalink
fix: let MaybeT.orElse return any inner type
Browse files Browse the repository at this point in the history
  • Loading branch information
andy.patterson authored and andnp committed May 14, 2018
1 parent 3efd2e7 commit da0d414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class MaybeT<T extends MonadLike<Unknown>> {
));
}

orElse<U extends MonadValue<T>>(def: U | (() => U)): U {
orElse<U extends MonadValue<any>>(def: U | (() => U)): T | U {
const map = getMap(this.value);
return map(inner =>
maybe(inner)
Expand Down

0 comments on commit da0d414

Please sign in to comment.