package reactiveData

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module M : Map.S

Signature

type !'a data = 'a M.t
type !'a patch = [
  1. | `Add of M.key * 'a
  2. | `Del of M.key
]
type !'a msg =
  1. | Patch of 'a patch
  2. | Set of 'a data
type 'a handle
type 'a t
val empty : 'a t
val make : 'a data -> 'a t * 'a handle
val make_from : 'a data -> 'a msg React.E.t -> 'a t
val const : 'a data -> 'a t
val patch : 'a handle -> 'a patch -> unit
val set : 'a handle -> 'a data -> unit
val map_msg : ('a -> 'b) -> 'a msg -> 'b msg
val map : ('a -> 'b) -> 'a t -> 'b t
val value : 'a t -> 'a data
val fold : ('a -> 'b msg -> 'a) -> 'b t -> 'a -> 'a React.signal
val value_s : 'a t -> 'a data React.S.t
val event : 'a t -> 'a msg React.E.t
OCaml

Innovation. Community. Security.