filters
namespace filtersFunctions
all(...parts: MetroFilter[]): MetroFilter
Builds a filter matching a module every part matches, testing the parts in order.
Returns
A MetroFilter keyed by its parts' keys in any order, or unkeyed when a part is.
any(...parts: MetroFilter[]): MetroFilter
Builds a filter matching a module any part matches, testing the parts in order.
Returns
A MetroFilter keyed by its parts' keys in any order, or unkeyed when a part is.
byDisplayName(name: string): MetroFilter
Builds a filter matching a module whose displayName equals the given name.
Returns
A MetroFilter matching the module with that displayName.
byFilePath(path: string): MetroFilter
Builds a filter matching a module whose tracked file path equals the given path.
Returns
A MetroFilter matching the module loaded from that file path.
byFluxStore(name: string, short?: boolean): MetroFilter
Builds a filter matching a flux store by name, appending Store when short is set.
Returns
A MetroFilter matching the flux store with that name.
byName(name: string): MetroFilter
Builds a filter matching a module whose name equals the given name.
Returns
A MetroFilter matching the module with that name.
byProps(...props: string[]): MetroFilter
Builds a filter matching a module that exposes all of the given property names.
Returns
A MetroFilter matching modules that expose every given property.
byPrototypes(...prototypes: string[]): MetroFilter
Builds a filter matching a module whose prototype exposes all of the given method names.
Returns
A MetroFilter matching modules whose prototype exposes every given method.
byTypeName(name: string): MetroFilter
Builds a filter matching a wrapped component, like one from React.memo, whose inner type has the given name.
Returns
A MetroFilter matching the module whose type has that name.
not(part: MetroFilter): MetroFilter
Builds a filter matching a module the given filter does not match.
Returns
A MetroFilter keyed by the part's key, or unkeyed when the part is.
Types
A module predicate, carrying its cache key and a raw flag, produced by every by* helper.