- getByProps<T, P>(props, options?): T | undefined
Type Parameters
- T
- P extends PropertyKey = keyof T
Parameters
- props: P[]
Optional
options: {
all?: false;
raw?: false;
}Optional
all?: false
Optional
raw?: false
Returns T | undefined
- getByProps<T, P>(props, options): T[]
Type Parameters
- T
- P extends PropertyKey = keyof T
Parameters
- props: P[]
- options: {
all: true;
raw?: false;
}all: true
Optional
raw?: false
Returns T[]
- getByProps<T, P>(props, options): RawModule<T> | undefined
Type Parameters
- T
- P extends PropertyKey = keyof T
Parameters
- props: P[]
- options: {
all?: false;
raw: true;
}Optional
all?: false
raw: true
Returns RawModule<T> | undefined
- getByProps<T, P>(props, options): RawModule<T>[]
Type Parameters
- T
- P extends PropertyKey = keyof T
Parameters
- props: P[]
- options: {
all: true;
raw: true;
}
- getByProps<T, P>(props, options?): T[] | RawModule<T>[]
Type Parameters
- T
- P extends PropertyKey = keyof T
Parameters
- props: P[]
Optional
options: {
all: true;
raw?: boolean;
}all: true
Optional
raw?: boolean
- getByProps<T, P>(props, options): T | RawModule<T> | undefined
Type Parameters
- T
- P extends PropertyKey = keyof T
Parameters
- props: P[]
- options: {
all?: false;
raw?: boolean;
}Optional
all?: false
Optional
raw?: boolean
Returns T | RawModule<T> | undefined
- getByProps<T, P>(props, options): RawModule<T> | RawModule<T>[] | undefined
Type Parameters
- T
- P extends PropertyKey = keyof T
Parameters
- props: P[]
- options: {
all?: boolean;
raw: true;
}Optional
all?: boolean
raw: true
- getByProps<T, P>(props, options): T | T[] | undefined
Type Parameters
- T
- P extends PropertyKey = keyof T
Parameters
- props: P
- options: {
all?: boolean;
raw?: false;
}Optional
all?: boolean
Optional
raw?: false
Returns T | T[] | undefined
- getByProps<T, P>(props, options?):
| T
| T[]
| RawModule<T>
| RawModule<T>[]
| undefined Type Parameters
- T
- P extends PropertyKey = keyof T
Parameters
- props: P[]
Optional
options: {
all?: boolean;
raw?: boolean;
}Optional
all?: boolean
Optional
raw?: boolean
- getByProps<T, P>(...props): T | undefined
Type Parameters
- T
- P extends PropertyKey[] = (keyof T)[]
Returns T | undefined
Equivalent to
getModule(filters.byProps(...props), options)
See