Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

The valueOrError has <U extends T>, why? #54

Open
witoldsz opened this issue Oct 17, 2018 · 1 comment
Open

The valueOrError has <U extends T>, why? #54

witoldsz opened this issue Oct 17, 2018 · 1 comment

Comments

@witoldsz
Copy link

I try to extract the value inside Maybe with undefined as Nothing:

errors = mappedErrors.valueOr(undefined)

Trouble is, the <U extends T> does not allow me to default to undefined. What is that constraint for?

@cbowdon
Copy link
Owner

cbowdon commented Dec 15, 2018

Sorry, I honestly can't remember. It's been a couple of years since I spent real time on this library. Not a great answer I know!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants