Skip to content

Commit 00aac38

Browse files
committed
fix(build): add missing & required src/Import.resi
Fixes ocaml#556
1 parent 59b515f commit 00aac38

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Import.resi

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
type void
2+
module Jsonable: {
3+
module type S1 = {
4+
type t<'a>
5+
let toJson: t<'a> => Js.Json.t
6+
let ofJson: Js.Json.t => option<t<'a>>
7+
}
8+
9+
module type S = {
10+
type t
11+
include S1 with type t<'a> := t
12+
}
13+
14+
module Unsafe: {
15+
// external assumeJsonable: 'a => Js.Json.t = "%identity"
16+
let toJson: 'a => Js.Json.t
17+
// external ofJson: Js.Json.t => 'a = "%identity"
18+
let ofJson: Js.Json.t => option<'a>
19+
}
20+
}

0 commit comments

Comments
 (0)