Permalink
Browse files

Tracing.start's options and path aren't optional

  • Loading branch information...
zploskey committed Jun 8, 2018
1 parent 9b7c55c commit 88f6f4ae7bbab4b2cc886060718af232a4fa3ce9
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Tracing.re
@@ -2,15 +2,15 @@ type t;

type tracingOptions = {
.
"path": Js.nullable(string),
"path": string,
"screenshots": Js.nullable(bool),
"categories": Js.nullable(array(string)),
};

[@bs.obj]
external makeTracingOptions :
(
~path: string=?,
~path: string,
~screenshots: bool=?,
~categories: array(string)=?,
unit
@@ -19,7 +19,7 @@ external makeTracingOptions :
"";

[@bs.send.pipe: t]
external start : (~options: tracingOptions=?, unit) => Js.Promise.t(unit) =
external start : (~options: tracingOptions, unit) => Js.Promise.t(unit) =
"";

[@bs.send]

0 comments on commit 88f6f4a

Please sign in to comment.