Cell API
    Preparing search index...

    Interface ComponentFilterRegistry

    interface ComponentFilterRegistry {
        addFilters(types: "*", filters: ComponentFilter<Object>[]): void;
        addFilters(
            types: ComponentType[],
            filters: ComponentFilter<Object>[],
        ): void;
        applyFilters<T extends Object>(toFilter: T[], type: ComponentType): T[];
    }

    Implemented by

    Index
    • Applies the filters for the given component type. Generic filters will be applied on any given type.

      Type Parameters

      • T extends Object

      Parameters

      • toFilter: T[]

        the elements to filter

      • type: ComponentType

        the component type for which potentially filters were registered

      Returns T[]

      the filtered elements