this object should contain the class of the collection datatype when the Accessor
is called,
and also the class of the collection datatype which stores a collection of Accessor
functions to retrieve from.
see CollectionSignalConfig for more information and examples.
the signal context on which this data structure will function in. it is needed by the data structure in order to fire update cycles natively.
the signal constructing class that is adapted to your provided collection data structures.
in order to use it, you will need to extend it, and call the super
constructor with the appropriate fn
memo function
that converts dataClass<Accessor<T>>
to valueClass<T>
Generated using TypeDoc
a generalized signal class factory, capable of holding a collection of Accessors in its data structure D, which then transforms into a collection of values held inside of data structure V, when this signal's accessor (value getter) is called.
this factory can adapt to many common collection data structure, such as
Set
,Array
,Map
, and other custom collections. but you will need to write an appropriate ["dataClass"] class for it, which would fire an update when mutations occur its collection of Accessors.for instance, if you ultimately wish to create signals that are "set-like collection of accessors", then you'd want:
D = dataClass = Set // of type Set<Accessor<T>>
V = valueClass = Set // of type Set<T>