Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

fix(build): add missing & required src/Import.resi #557

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/Import.resi
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type void
module Jsonable: {
module type S1 = {
type t<'a>
let toJson: t<'a> => Js.Json.t
let ofJson: Js.Json.t => option<t<'a>>
}

module type S = {
type t
include S1 with type t<'a> := t
}

module Unsafe: {
// external assumeJsonable: 'a => Js.Json.t = "%identity"
let toJson: 'a => Js.Json.t
// external ofJson: Js.Json.t => 'a = "%identity"
let ofJson: Js.Json.t => option<'a>
}
}