[TS] Add find and findAll types

This commit is contained in:
redstonekasi 2023-02-22 01:25:14 +01:00 committed by Beef
parent d6a8dd6710
commit 891a06a72b

2
src/def.d.ts vendored
View file

@ -277,6 +277,8 @@ interface VendettaObject {
instead: typeof _spitroast.instead; instead: typeof _spitroast.instead;
}; };
metro: { metro: {
find: (filter: (m: any) => boolean) => any;
findAll: (filter: (m: any) => boolean) => any[];
findByProps: PropsFinder; findByProps: PropsFinder;
findByPropsAll: PropsFinderAll; findByPropsAll: PropsFinderAll;
findByDisplayName: (name: string, defaultExp?: boolean) => any; findByDisplayName: (name: string, defaultExp?: boolean) => any;