Skip to content

Show search action buttons #53973

Show search action buttons

Show search action buttons #53973

Triggered via pull request October 24, 2024 23:44
Status Failure
Total duration 2m 36s
Artifacts

typecheck.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
typecheck: src/libs/SearchUIUtils.ts#L265
Property 'chatReportID' does not exist on type 'SearchTransaction | SearchReport'. Did you mean 'reportID'?
typecheck: src/libs/SearchUIUtils.ts#L267
Element implicitly has an 'any' type because expression of type '`transactionViolations_${string}`' can't be used to index type 'PrefixedRecord<"transactions_", SearchTransaction> & Record<"personalDetailsList", Record<string, SearchPersonalDetails>> & PrefixedRecord<...> & PrefixedRecord<...> & PrefixedRecord<...>'.
typecheck: src/libs/SearchUIUtils.ts#L281
Argument of type 'string[] | SearchTransaction | null' is not assignable to parameter of type '({ amount: number; attendees?: Attendee[] | undefined; taxAmount?: number | undefined; taxCode?: string | undefined; billable?: boolean | undefined; category?: string | undefined; ... 42 more ...; managedCard?: boolean | undefined; } & OfflineFeedback<...>)[] | undefined'.
typecheck: src/libs/SearchUIUtils.ts#L289
Argument of type 'SearchTransaction | null' is not assignable to parameter of type '({ amount: number; attendees?: Attendee[] | undefined; taxAmount?: number | undefined; taxCode?: string | undefined; billable?: boolean | undefined; category?: string | undefined; ... 42 more ...; managedCard?: boolean | undefined; } & OfflineFeedback<...>) | undefined'.
typecheck: src/libs/SearchUIUtils.ts#L293
'transaction' is possibly 'null'.
typecheck: src/libs/SearchUIUtils.ts#L293
Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
typecheck: src/libs/actions/IOU.ts#L7021
Argument of type '({ 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<...> & Offline...' is not assignable to parameter 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<...> ...'.
typecheck: src/libs/actions/IOU.ts#L7026
Argument of type '({ 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<...> & Offline...' is not assignable to parameter of type 'OnyxInputOrEntry<{ 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; } & Partia...'.
typecheck: src/libs/actions/IOU.ts#L7033
Argument of type 'import("/home/runner/work/App/App/src/types/onyx/OnyxInputOrEntry").default<{ avatarUrl?: string | undefined; avatarFileName?: string | undefined; chatType?: import("/home/runner/work/App/App/node_modules/type-fest/source/value-of").ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "polic...' is not assignable to parameter of type 'import("/home/runner/work/App/App/src/types/onyx/OnyxInputOrEntry").default<{ avatarUrl?: string | undefined; avatarFileName?: string | undefined; chatType?: import("/home/runner/work/App/App/node_modules/type-fest/source/value-of").ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "polic...'.
typecheck: src/libs/actions/IOU.ts#L7034
Argument of type 'OnyxInputOrEntry<{ 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 ...; visibleChatMembe...' is not assignable to parameter of type 'string | OnyxInputOrEntry<{ avatarUrl?: string | undefined; avatarFileName?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; ... 7 more ...; readonly SYSTEM: "system"; }> | undefined; ... 71 more ...; visibleChatMemberAccountIDs?: number[] ...'.