- getModule<T>(filter, options?): T | undefined
Parameters
- filter: Filter
Optional
options: {
all?: false;
raw?: false;
}Optional
all?: false
Optional
raw?: false
Returns T | undefined
- getModule<T>(filter, options?): T[]
Parameters
- filter: Filter
Optional
options: {
all: true;
raw?: false;
}all: true
Optional
raw?: false
Returns T[]
- getModule<T>(filter, options?): RawModule<T> | undefined
Parameters
- filter: Filter
Optional
options: {
all?: false;
raw: true;
}Optional
all?: false
raw: true
Returns RawModule<T> | undefined
- getModule<T>(filter, options?): RawModule<T>[]
Parameters
- filter: Filter
Optional
options: {
all: true;
raw: true;
}
- getModule<T>(filter, options?): T | RawModule<T> | undefined
Parameters
- filter: Filter
Optional
options: {
all?: false;
raw?: boolean;
}Optional
all?: false
Optional
raw?: boolean
Returns T | RawModule<T> | undefined
- getModule<T>(filter, options?): T[] | RawModule<T>[]
Parameters
- filter: Filter
Optional
options: {
all: true;
raw?: boolean;
}all: true
Optional
raw?: boolean
- getModule<T>(filter, options?): T | T[] | undefined
Parameters
- filter: Filter
Optional
options: {
all?: boolean;
raw?: false;
}Optional
all?: boolean
Optional
raw?: false
Returns T | T[] | undefined
- getModule<T>(filter, options?): RawModule<T> | RawModule<T>[] | undefined
Parameters
- filter: Filter
Optional
options: {
all?: boolean;
raw: true;
}Optional
all?: boolean
raw: true
- getModule<T>(filter, options?):
| T
| T[]
| RawModule<T>
| RawModule<T>[]
| undefined Parameters
- filter: Filter
Optional
options: {
all?: boolean;
raw?: boolean;
}Optional
all?: boolean
Optional
raw?: boolean
Find a module that matches the given filter
Param: filter
Filter function
Param: options
Options
Param: options.all
Return all matching modules instead of just the first
Param: options.raw
Return the raw module instead of the exports
See
filters