[TS migration] Migrate 'MoneyReportHeader.js' component to TypeScript #17038
Annotations
10 errors
Type check with TypeScript:
src/components/MoneyReportHeader.tsx#L69
Argument of type 'OnyxEntry<Report>' is not assignable to parameter of type 'Object'.
|
Type check with TypeScript:
src/components/MoneyReportHeader.tsx#L119
This JSX tag's 'children' prop expects a single child of type 'null | undefined', but multiple children were provided.
|
Type check with TypeScript:
src/components/MoneyReportHeader.tsx#L123
Type 'Report' is not assignable to type 'null | undefined'.
|
Type check with TypeScript:
src/components/MoneyReportHeader.tsx#L137
Type '{ currency: string | undefined; policyID: string | undefined; chatReportID: string | undefined; iouReport: Report; onPress: (paymentType: any) => void; enablePaymentsRoute: "enable-payments"; ... 4 more ...; formattedAmount: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<TProps, "navigation">, "nvp_lastPaymentMethod">'.
|
Type check with TypeScript:
src/components/MoneyReportHeader.tsx#L141
Parameter 'paymentType' implicitly has an 'any' type.
|
Type check with TypeScript:
src/components/MoneyReportHeader.tsx#L141
Argument of type 'OnyxEntry<Report>' is not assignable to parameter of type 'Object'.
|
Type check with TypeScript:
src/components/MoneyReportHeader.tsx#L167
Type '{ currency: string | undefined; policyID: string | undefined; chatReportID: string | undefined; iouReport: Report; onPress: (paymentType: any) => void; enablePaymentsRoute: "enable-payments"; addBankAccountRoute: string; shouldHidePaymentOptions: boolean; shouldShowApproveButton: boolean; formattedAmount: string; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<TProps, "navigation">, "nvp_lastPaymentMethod">'.
|
Type check with TypeScript:
src/components/MoneyReportHeader.tsx#L171
Parameter 'paymentType' implicitly has an 'any' type.
|
Type check with TypeScript:
src/components/MoneyReportHeader.tsx#L171
Argument of type 'OnyxEntry<Report>' is not assignable to parameter of type 'Object'.
|
Type check with TypeScript
Process completed with exit code 2.
|
The logs for this run have expired and are no longer available.
Loading