Interface IApplyOptions

interface IApplyOptions {
    args?: any[];
    getter?: ((target, key) => Element | Iterable<Element>);
    mapper?: (<T, U>(getter) => ((comps, key) => IApplyComponents<T[U]>));
}

Properties

Properties

args?: any[]
getter?: ((target, key) => Element | Iterable<Element>)

Type declaration

    • (target, key): Element | Iterable<Element>
    • Parameters

      • target: Element | DocumentFragment
      • key: IKey

      Returns Element | Iterable<Element>

mapper?: (<T, U>(getter) => ((comps, key) => IApplyComponents<T[U]>))

Type declaration

    • <T, U>(getter): ((comps, key) => IApplyComponents<T[U]>)
    • Type Parameters

      • T
      • U extends string | number | symbol

      Parameters

      • getter: ((target, key) => Element | Iterable<Element>)
          • (target, key): Element | Iterable<Element>
          • Parameters

            • target: Element | DocumentFragment
            • key: IKey

            Returns Element | Iterable<Element>

      Returns ((comps, key) => IApplyComponents<T[U]>)