From 179720a7f2c790ea5557bb5caabe22a926b3e106 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 7 Feb 2022 15:19:47 +0100 Subject: Editor : on import, preserve the newest notes --- editor/state/storage.mli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/state/storage.mli') diff --git a/editor/state/storage.mli b/editor/state/storage.mli index 4d022d1..cad2982 100755 --- a/editor/state/storage.mli +++ b/editor/state/storage.mli @@ -25,7 +25,7 @@ val load : Jstr.t option -> content Js.t val save - : check:(content Js.t -> bool) -> content Js.t -> Jstr.t option -> (bool, Jv.Error.t) result + : check:(previous:content Js.t -> update:content Js.t -> bool) -> content Js.t -> Jstr.t option -> (bool, Jv.Error.t) result (** Remove the page from the storage. *) val delete @@ -39,4 +39,4 @@ val to_json : unit -> Jstr.t val of_json - : Jstr.t -> (unit, Jv.Error.t) result + : check:(previous:content Js.t -> update:content Js.t -> bool) -> Jstr.t -> (unit, Jv.Error.t) result -- cgit v1.2.3