Skip to content

Instantly share code, notes, and snippets.

@dariooddenino
Created August 2, 2017 16:20
Show Gist options
  • Save dariooddenino/24e958ec2871b797e819f3c6c839312a to your computer and use it in GitHub Desktop.
Save dariooddenino/24e958ec2871b797e819f3c6c839312a to your computer and use it in GitHub Desktop.
// helpers.js
import * as R from 'ramda'
export const subObj = R.doSomestuff
// reasontest.re
type jsmodule;
external helpers: jsmodule = "" [@@bs.module];
external subObj': jsmodule => array string => 'a => 'a = "subObj" [@@bs.send];
let subObj keys obj => subObj' helpers keys obj;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment