[TS migration] Migrate 'AttachmentView' and 'AttachmentCarousel' components to TypeScript #13841
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.
|