Permalink
Browse files

Add "type" key to FrameBase.tagOptions

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 8d42628258a0b5ba92680858af461f1b2d6c4392
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/FrameBase.re
@@ -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]

0 comments on commit 8d42628

Please sign in to comment.