Skip to content

Commit

Permalink
Add "type" key to FrameBase.tagOptions
Browse files Browse the repository at this point in the history
As a reserved word, we use "_type" that is compiled to "type".

Fixes #35.
  • Loading branch information
zploskey committed Mar 15, 2018
1 parent c09788a commit 8d42628
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/FrameBase.re
Expand Up @@ -5,11 +5,19 @@ type tagOptions = {
"content": Js.undefined(string),
"path": Js.undefined(string),
"url": Js.undefined(string),
"_type": Js.undefined(string),
};

[@bs.obj]
external makeTagOptions :
(~url: string=?, ~path: string=?, ~content: string=?, unit) => _ =
(
~url: string=?,
~path: string=?,
~content: string=?,
~_type: string=?,
unit
) =>
tagOptions =
"";

[@bs.send.pipe: t]
Expand Down

0 comments on commit 8d42628

Please sign in to comment.