Observable which pushes a new value when anything changes.
Like StoreElement.onUpdate$ but a BeahviourSubject. As such it always pushes the current value when you subscribe to it.
Find out whether this store element represents an array instead of an object.
Return the "raw" value such as the one that was used to create this element. This recursively traverses the element tree and converts the nested store elements to their raw value.
This returns a copy of the value, not the original one.
Check whether the StoreElement is equal to a raw value. This is not a comparator between StoreElement. It is used by StoreElement.update to check whether something has changed.
Get the value of key or set it to the provided default value if it doesn't exist.
Save directly propagates to the Store.
Provide some default values for this element. If a key already exists it is skipped.
This does not trigger StoreElement.save!
Calls StoreElement.save and logs errors. If you don't want to await StoreElement.save, use this method!
Receive a new value and apply it to this element. This is not a method you should use! It is exposed for Store to apply changes to this element.
Create a StoreElement and wrap it with StoreElementTraps.
Note that you should use this method because it pushes the wrapped value to StoreElement.value$ which otherwise would not be the case.
Generated using TypeDoc
A special type of StoreElement that represents the top level object from the extension storage.