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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optic-ts contains a standalone api which looks a bit more like this
O.compose( 'foo', O.optional, O.when((value: number) => value > 42) )
I've come across instances where this API is preferable, especially if I'm reusing complex optics
e.g.
const myComplexOptic = O.compose( 'foo', O.optional, O.guard((obj:{type:string}) => obj.type === 'bar') ) const bazAtom = focusAtom(dataAtom,O.compose(myComplexOptic,'baz')); const quxAtom = focusAtom(dataAtom,O.compose(myComplexOptic,'qux'));
This might also contribute to solving such issues as #15 without introducing new concepts
I think this would be worth implementing
The text was updated successfully, but these errors were encountered:
Would you be interested in implementing it? I think we should create a completely new function.
Sorry, something went wrong.
No branches or pull requests
optic-ts contains a standalone api which looks a bit more like this
I've come across instances where this API is preferable, especially if I'm reusing complex optics
e.g.
This might also contribute to solving such issues as #15 without introducing new concepts
I think this would be worth implementing
The text was updated successfully, but these errors were encountered: