Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save melbourne2991/af487cf7c9898ca40edfe85abeecc5f0 to your computer and use it in GitHub Desktop.
Save melbourne2991/af487cf7c9898ca40edfe85abeecc5f0 to your computer and use it in GitHub Desktop.
append to list
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