Skip to content

Commit

Permalink
Merge pull request #246 from tomecko/tomecko-maybe-from-empty-fix
Browse files Browse the repository at this point in the history
Add Maybe.fromEmpty to types
  • Loading branch information
ulfryk authored Nov 12, 2021
2 parents b6a4f6a + 0fad169 commit a9c03f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/monet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ interface IMaybeStatic extends IMonadStatic {
fromFalsy<V>(val: V|null|undefined): Maybe<V>;
fromNull<V>(val: V|null|undefined): Maybe<V>;
fromUndefined<V>(val: V|undefined): Maybe<V>;
fromEmpty<V>(val: V|null|undefined): Maybe<V>;
unit: ISomeStatic;
of: ISomeStatic; // alias for unit
pure: ISomeStatic; // alias for unit
Expand Down

0 comments on commit a9c03f5

Please sign in to comment.