Skip to content

Commit

Permalink
Oops, forgot to expose may_update
Browse files Browse the repository at this point in the history
  • Loading branch information
let-def committed Dec 18, 2023
1 parent e5fd299 commit 7bc9bb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/lwd/lwd.mli
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ val peek : 'a var -> 'a
val update : ('a -> 'a) -> 'a var -> unit
(** Modify a variable based on its currently observed value. *)

val may_update : ('a -> 'a option) -> 'a var -> unit
(** Conditionnally modify a variable based on its currently observed value. *)

type +'a prim
(** A primitive document. It can correspond, for example, to
a primitive UI element.
Expand Down

0 comments on commit 7bc9bb9

Please sign in to comment.