type of internal value; it can be omitted if it's possible to infer the type from constructor
creates a new HyperValue instance
the initial value of hyper-value, cannot be omitted
reading and writing $
is recommended way to read and write the value of hyper-value
reading and writing $
is recommended way to read and write the value of hyper-value
reads the value of hyper-value
if set to true it will not trigger recording as dependency;
it could be used inside auto
helper function and similar ones
sets new value of hyper-value (if the value is the same according to === nothing will happen)
the new value
Generated using TypeDoc
This is a main class of the library. You can create hyper-values using constructor:
const a = new HyperValue(1)
.After that you'll be able to read and write internal value and apply helpers from hyper-value/hs;
HyperValue