Adjust useOnyx
selector for collections
#52167
Annotations
6 errors
typecheck:
src/hooks/useReportIDs.tsx#L85
Argument of type 'OnyxEntry<{ id: string; name: string; role: ValueOf<{ readonly ADMIN: "admin"; readonly AUDITOR: "auditor"; readonly USER: "user"; }>; type: ValueOf<{ readonly PERSONAL: "personal"; readonly CORPORATE: "corporate"; readonly TEAM: "team"; }>; ... 70 more ...; workspaceAccountID?: number | undefined; } & Partial<...> ...' is not assignable to parameter of type 'OnyxCollection<{ id: string; name: string; role: ValueOf<{ readonly ADMIN: "admin"; readonly AUDITOR: "auditor"; readonly USER: "user"; }>; type: ValueOf<{ readonly PERSONAL: "personal"; readonly CORPORATE: "corporate"; readonly TEAM: "team"; }>; ... 70 more ...; workspaceAccountID?: number | undefined; } & Partial<...'.
|
typecheck:
src/hooks/useReportIDs.tsx#L86
Argument of type 'OnyxEntry<ReportActions>' is not assignable to parameter of type 'OnyxCollection<ReportActions>'.
|
typecheck:
src/hooks/useReportIDs.tsx#L105
Argument of type 'OnyxCollection<Record<string, PolicySelector | undefined>>' is not assignable to parameter of type 'OnyxCollection<PolicySelector>'.
|
typecheck:
src/pages/ProfilePage.tsx#L80
Argument of type 'OnyxEntry<{ avatarUrl?: string | undefined; avatarFileName?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; readonly TRIP_ROOM: "tripRoom"; ... 6 more ...; readonly SYSTEM: "system"; }> | undefined; ... 71 more ...; visibleChatMemberAccoun...' is not assignable to parameter of type 'OnyxCollection<{ avatarUrl?: string | undefined; avatarFileName?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; readonly TRIP_ROOM: "tripRoom"; ... 6 more ...; readonly SYSTEM: "system"; }> | undefined; ... 71 more ...; visibleChatMemberA...'.
|
typecheck:
src/pages/ProfilePage.tsx#L94
Argument of type 'OnyxCollection<Record<string, OnyxEntry<{ avatarUrl?: string | undefined; avatarFileName?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; ... 7 more ...; readonly SYSTEM: "system"; }> | undefined; ... 71 more ...; visibleChatMemberAccountI...' is not assignable to parameter of type 'OnyxCollection<{ avatarUrl?: string | undefined; avatarFileName?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; readonly TRIP_ROOM: "tripRoom"; ... 6 more ...; readonly SYSTEM: "system"; }> | undefined; ... 71 more ...; visibleChatMemberA...'.
|
typecheck
Process completed with exit code 2.
|