- getBySource<T>(match, options?): T | undefined
Parameters
- match: string | RegExp
Optional
options: {
all?: false;
raw?: false;
}Optional
all?: false
Optional
raw?: false
Returns T | undefined
- getBySource<T>(match, options): T[]
Parameters
- match: string | RegExp
- options: {
all: true;
raw?: false;
}all: true
Optional
raw?: false
Returns T[]
- getBySource<T>(match, options): RawModule<T> | undefined
Parameters
- match: string | RegExp
- options: {
all: false;
raw: true;
}
Returns RawModule<T> | undefined
- getBySource<T>(match, options): RawModule<T>[]
Parameters
- match: string | RegExp
- options: {
all: true;
raw: true;
}
- getBySource<T>(match, options): T | RawModule<T> | undefined
Parameters
- match: string | RegExp
- options: {
all?: false;
raw?: boolean;
}Optional
all?: false
Optional
raw?: boolean
Returns T | RawModule<T> | undefined
- getBySource<T>(match, options): T[] | RawModule<T>[]
Parameters
- match: string | RegExp
- options: {
all: true;
raw?: boolean;
}all: true
Optional
raw?: boolean
- getBySource<T>(match, options): T | T[] | undefined
Parameters
- match: string | RegExp
- options: {
all: boolean;
raw?: false;
}all: boolean
Optional
raw?: false
Returns T | T[] | undefined
- getBySource<T>(match, options): RawModule<T> | RawModule<T>[] | undefined
Parameters
- match: string | RegExp
- options: {
all: boolean;
raw: true;
}
- getBySource<T>(match, options?):
| T
| T[]
| RawModule<T>
| RawModule<T>[]
| undefined Parameters
- match: string | RegExp
Optional
options: {
all?: boolean;
raw?: boolean;
}Optional
all?: boolean
Optional
raw?: boolean
Equivalent to
getModule(filters.bySource(match), options)
See