[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;
};
metro: {
find: (filter: (m: any) => boolean) => any;
findAll: (filter: (m: any) => boolean) => any[];
findByProps: PropsFinder;
findByPropsAll: PropsFinderAll;
findByDisplayName: (name: string, defaultExp?: boolean) => any;