Filters
Series of Filters to be used for finding webpack modules.
Properties
Methods
byDisplayName
Generates a function that filters by the displayName
property.
Parameter | Type | Description |
---|---|---|
name | string | Name the module should have |
Returns: function
- A filter that checks for a displayName
match
byKeys
Generates a function that filters by a set of properties.
Parameter | Type | Description |
---|---|---|
keys | ...string | List of property names |
Returns: function
- A filter that checks for a set of properties
byProps deprecated
Returns: void
byPrototypeFields deprecated
Returns: void
byPrototypeKeys
Generates a function that filters by a set of properties on the object's prototype.
Parameter | Type | Description |
---|---|---|
props | ...string | List of property names |
Returns: function
- A filter that checks for a set of properties on the object's prototype.
byRegex
Generates a function that filters by a regex.
Parameter | Type | Description |
---|---|---|
search | RegExp | A RegExp to check on the module |
filter | function | Additional filter |
Returns: function
- A filter that checks for a regex match
byStoreName
Generates a function that filters by a specific internal Store name.
Parameter | Type | Description |
---|---|---|
name | string | Name the store should have |
Returns: function
- A filter that checks for a Store name match
byStrings
Generates a function that filters by strings.
Parameter | Type | Description |
---|---|---|
strings | ...string | A list of strings |
Returns: function
- A filter that checks for a set of strings
combine
Generates a combined function from a list of filters.
Parameter | Type | Description |
---|---|---|
filters | ...function | A list of filters |
Returns: function
- Combinatory filter of all arguments