Module Ext_state_Provider


module Ext_state_Provider: sig .. end
Abstract base class for state provider implementat ...

Abstract base class for state provider implementations. The provider is responsible for setting values and extracting values to/from the underlying storage source. The storage source can vary and the details should be implemented in a subclass. For example a provider could use a server side database or the browser localstorage where supported.

This class provides methods for encoding and decoding typed variables including dates and defines the Provider interface. By default these methods put the value and the type information into a delimited string that can be stored. These should be overridden in a subclass if you want to change the format of the encoded value and subsequent decoding.



class type t = object .. end
class type configs = object .. end
class type events = object .. end
class type statics = object .. end
val of_configs : configs Js.t -> t Js.t
of_configs c casts a config object c to an instance of class t
val to_configs : t Js.t -> configs Js.t
to_configs o casts instance o of class t to a config object