Interface IApplyMap

An object mapping string keys to values of type function or function[]. When used as the applySec in a call to apply, the keys are used as selectors in calls to element.querySelectorAll (or ruleSelectorAll if the element is an instance of HTMLStyleElement). The functions will be mathced against the selected elements (or CSS rules) at the same index.

Example

myApplyMap = {
span: (...spans) => doSomethingWith(spans);
.btn: (...classedButtons) => doAnotherThingWith(classedButtons)
}
interface IApplyMap {
    [key: string | number]: IComponents;
}

Indexable

[key: string | number]: IComponents