Created
July 1, 2020 20:23
-
-
Save guillaumewuip/7291120200c176dc892f2e98a1b27352 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// text :: (text: Text) => string | |
export const text = MessageUnion.Text.lensFromProp(‘text’).get; | |
// updateText :: (content: string) => (text: Text) => Text | |
export const updateText = MessageUnion.Text.lensFromProp(‘text’).set; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment