Skip to content

[TS migration] Migrate 'AttachmentView' and 'AttachmentCarousel' components to TypeScript #13841

[TS migration] Migrate 'AttachmentView' and 'AttachmentCarousel' components to TypeScript

[TS migration] Migrate 'AttachmentView' and 'AttachmentCarousel' components to TypeScript #13841

Triggered via pull request November 28, 2023 14:41
Status Failure
Total duration 50s
Artifacts

typecheck.yml

on: pull_request
typecheck
42s
typecheck
Fit to window
Zoom out
Zoom in

Annotations

5 errors
typecheck: src/components/Attachments/AttachmentView/AttachmentViewPdf/BaseAttachmentViewPdf.tsx#L51
Type '{ onPress: (() => void) | undefined; isFocused: boolean | undefined; sourceURL: string; fileName: string; style: StyleProp<ViewStyle>; onToggleKeyboard: () => void; onScaleChanged: (scale: number) => void; onLoadComplete: () => void; errorLabelStyles: StyleProp<...>; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<WindowDimensionsProps, keyof WindowDimensionsContextData> & RefAttributes<...>, "maxCanvasArea" | ... 1 more ... | "maxCanvasWidth">'.
typecheck: src/components/Attachments/AttachmentView/AttachmentViewPdf/index.tsx#L8
Type '{ onPress: (() => void) | undefined; isFocused: boolean | undefined; sourceURL: string; fileName: string; style: StyleProp<ViewStyle>; onToggleKeyboard: () => void; onScaleChanged: ((scale?: number | undefined) => void) | undefined; onLoadComplete: () => void; errorLabelStyles: StyleProp<...>; }' is not assignable to type 'IntrinsicAttributes & Omit<Omit<WindowDimensionsProps, keyof WindowDimensionsContextData> & RefAttributes<...>, "maxCanvasArea" | ... 1 more ... | "maxCanvasWidth">'.
typecheck: src/components/Attachments/AttachmentView/index.tsx#L5
Module '"@components/Attachments/AttachmentCarousel/types"' has no exported member 'ImageSource'. Did you mean to use 'import ImageSource from "@components/Attachments/AttachmentCarousel/types"' instead?
typecheck: src/components/Attachments/AttachmentView/index.tsx#L111
Type '{ transactionID: string; }' is not assignable to type 'IntrinsicAttributes & Omit<any, string | number | symbol>'.
typecheck
Process completed with exit code 2.