Make getAllReports not include undefined #55996
Annotations
5 errors
typecheck:
src/libs/Navigation/Navigation.ts#L70
'reportID' is specified more than once, so this usage will be overwritten.
|
typecheck:
src/libs/ReportConnection.ts#L16
Type '{ [k: string]: ({ avatarUrl?: string | undefined; avatarFileName?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; ... 7 more ...; readonly SYSTEM: "system"; }> | undefined; ... 58 more ...; private_isArchived?: string | undefined; } & Offl...' is not assignable to type 'Record<string, { avatarUrl?: string | undefined; avatarFileName?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; ... 7 more ...; readonly SYSTEM: "system"; }> | undefined; ... 58 more ...; private_isArchived?: string | undefined; } & Offli...'.
|
typecheck:
src/libs/ReportUtils.ts#L1405
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; ... 58 more ...; private_isArchived?: st...' is not assignable to type '({ 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; ... 58 more ...; private_isArchived?: string | un...'.
|
typecheck:
src/libs/actions/IOU.ts#L3939
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; ... 58 more ...; private_isArchived?: st...' is not assignable to type '({ 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; ... 58 more ...; private_isArchived?: string | un...'.
|
typecheck
Process completed with exit code 2.
|