• 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>

    Type Parameters

    • D
    • V

    Parameters

    • data_structure_class_config: CollectionSignalConfig<D, V>

      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.

    • ctx: Context

      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.

    Returns typeof CollectionSignal

    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