Skip to content

Commit

Permalink
used bucklescript workaround to get the default field to work (rescri…
Browse files Browse the repository at this point in the history
  • Loading branch information
ctbucha committed Aug 28, 2018
1 parent c45c4fa commit 62e1c2e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/BsRaDataJsonServer.re
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
type httpClient;
type raDataJsonServer;

[@bs.module]
%raw
"var RaDataJsonServer = require('ra-data-json-server')";
[@bs.val]
external getRaDataJsonServer :
(~apiUrl: string, ~httpClient: httpClient=?, unit) => raDataJsonServer =
"ra-data-json-server";
"RaDataJsonServer";
let getRaDataJsonServer = getRaDataJsonServer;

0 comments on commit 62e1c2e

Please sign in to comment.