A function that returns the current value. If the value is a val, it will be auto-flattened.
A function that takes a notify function and returns a disposer. The notify function should be called when the value changes.
Optional
config: ValConfig<UnwrapVal<TValOrValue>>custom config for the val.
A readonly val with value of inner val.
Creates a readonly val from a getter function and a listener function. If the value is a val, it will be auto-flattened.