Created
October 7, 2018 14:28
-
-
Save melbourne2991/af487cf7c9898ca40edfe85abeecc5f0 to your computer and use it in GitHub Desktop.
append to list
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
const addNode = <NDS extends INodeDefinitions, K extends keyof NDS>( | |
definition: K | |
) => R.over(nodesLens, R.append(createNode<NDS, K>(definition))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment