[Metro > Filters] Add findByStoreName
This commit is contained in:
parent
4ccd758f4a
commit
488cc76dda
1 changed files with 2 additions and 1 deletions
|
@ -82,4 +82,5 @@ const dNameFilter = (name: string, defaultExp: boolean) => (defaultExp ? (m: any
|
|||
export const findByProps: PropsFinder = (...props) => find(propsFilter(props));
|
||||
export const findByPropsAll: PropsFinderAll = (...props) => findAll(propsFilter(props));
|
||||
export const findByDisplayName = (name: string, defaultExp = true) => find(dNameFilter(name, defaultExp));
|
||||
export const findByDisplayNameAll = (name: string, defaultExp = true) => findAll(dNameFilter(name, defaultExp));
|
||||
export const findByDisplayNameAll = (name: string, defaultExp = true) => findAll(dNameFilter(name, defaultExp));
|
||||
export const findByStoreName = (storeName: string) => find((m: any) => m.getName?.() === storeName);
|
Loading…
Reference in a new issue