Last active
September 1, 2021 21:56
-
-
Save Sceat/2532127db036dc2a1c5e8d8ac582ec18 to your computer and use it in GitHub Desktop.
Contain side-effects by boxing your IO calls or whatever you want
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const success = x => ({ success: x }) | |
export const failure = x => ({ failure: x }) | |
export default { | |
success, | |
failure, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "result", | |
"version": "0.1.0", | |
"type": "module", | |
"main": "_result.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result
Contain side-effects in your code by boxing your IO calls or whatever you want
📦 Install
Usage