class type t =Inheritsobject
..end
method clear : Js.js_string Js.t -> unit Js.meth
Clears a value from the state
Parameters:
Js.js_string Js.t
The key name
method decodeValue : 'a. Js.js_string Js.t -> 'a Js.t Js.meth
Decodes a string previously encoded with encodeValue.
Parameters:
Js.js_string Js.t
The value to decode
Returns:
_ Js.t
The decoded value
method encodeValue : 'b. 'b Js.t -> Js.js_string Js.t Js.meth
Encodes a value including type information. Decode with decodeValue.
Parameters:
_ Js.t
The value to encode
Returns:
Js.js_string Js.t
The encoded value
method get : 'c 'd. Js.js_string Js.t -> 'c Js.t -> 'd Js.t Js.meth
Returns the current value for a key
Parameters:
Js.js_string Js.t
The key name
_ Js.t
A default value to return if the key's value is not found
Returns:
_ Js.t
The state data
method set : 'e. Js.js_string Js.t -> 'e Js.t -> unit Js.meth
Sets the value for a key
Parameters:
Js.js_string Js.t
The key name
_ Js.t
The value to set