We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
The fromNullable constructor is missing from the Optional module.
import * as L from 'monocle-ts/lib/Lens'; import * as O from 'monocle-ts/lib/Optional'; type Test = { a?: { b?: { c: number } }; }; const optionalC = pipe(L.id<Test>(), L.prop('a'), L.fromNullable, O.prop('b'), O.fromNullable, O.prop('c')); // optionalC: O.Optional<Test, number>
The text was updated successfully, but these errors were encountered:
Optional: add missing fromNullable combinator, closes #133
fromNullable
2ea189b
28868ea
gcanti
No branches or pull requests
馃殌 Feature request
Current Behavior
The fromNullable constructor is missing from the Optional module.
Desired Behavior
The text was updated successfully, but these errors were encountered: