Retrieves a module(s) that matches the specified filter criteria.
The expected type of the module(s) to be returned.
A function used to filter the modules.
Configuration options for the module retrieval.
Whether to retrieve all matching modules as an array. If false, retrieves only the first matching module. Defaults to false.
false
Whether to return the raw module(s) without processing their exports. Defaults to false.
filters
The retrieved module(s) based on the filter and options.
Optional
Retrieves a module(s) that matches the specified filter criteria.
Template: T
The expected type of the module(s) to be returned.
Param: filter
A function used to filter the modules.
Param: options
Configuration options for the module retrieval.
Param: options.all
Whether to retrieve all matching modules as an array. If
false, retrieves only the first matching module. Defaults tofalse.Param: options.raw
Whether to return the raw module(s) without processing their exports. Defaults to
false.See
filters
Returns
The retrieved module(s) based on the filter and options.