Permalink
Browse files

Add Browser.process()

Bucklescript doesn't have a child_process type yet, so we'll use
the process type for now which shares some of the same functions.
  • Loading branch information...
zploskey committed Jun 8, 2018
1 parent 8374023 commit db8431c14932af05a9bb93c310dc27c60380153e
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Browser.re
@@ -10,6 +10,10 @@ external empty : unit => t = "%identity";

[@bs.send] external pages : t => Js.Promise.t(array(Page.t)) = "";

/* NOTE: This should be Node.Child_process.t but it does not exist. */
[@bs.send] [@bs.return nullable]
external process : t => option(Node.Process.t) = "";

[@bs.send] external version : t => Js.Promise.t(string) = "";

[@bs.send] external wsEndpoint : t => string = "";

0 comments on commit db8431c

Please sign in to comment.