Fix findByProps for vd api

This commit is contained in:
pylixonly 2024-02-24 04:18:03 +08:00 • committed by GitHub
parent 9de6ca830f
commit cfcd00f493
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,8 +24,8 @@ export const createVendettaObject = (unloads: any[]): any => ({
metro: {
find: (filter: (m: any) => boolean) => metro.find(filter),
findAll: (filter: (m: any) => boolean) => metro.findAll(filter),
findByProps: (filter: any) => metro.findByProps(filter),
findByPropsAll: (filter: any) => metro.findByPropsAll(filter),
findByProps: (...props: any) => metro.findByProps(...props),
findByPropsAll: (...props: any) => metro.findByPropsAll(...props),
findByName: (name: string, defaultExp?: boolean | undefined) => metro.findByName(name, defaultExp),
findByNameAll: (name: string, defaultExp?: boolean | undefined) => metro.findByNameAll(name, defaultExp),
findByDisplayName: (displayName: string, defaultExp?: boolean | undefined) => metro.findByDisplayName(displayName, defaultExp),