[TS migration] Migrate 'IOUEditRequestReceipt' page to TypeScript #30638
Annotations
10 errors
typecheck:
src/pages/iou/request/step/IOURequestStepScan/index.native.tsx#L43
Cannot find name 'useCameraDevice'.
|
typecheck:
src/pages/iou/request/step/IOURequestStepScan/index.native.tsx#L109
Cannot invoke an object which is possibly 'undefined'.
|
typecheck:
src/pages/iou/request/step/IOURequestStepScan/index.native.tsx#L220
'camera.current' is possibly 'null'.
|
typecheck:
src/pages/iou/request/step/IOURequestStepScan/index.native.tsx#L308
Type '{ children: ({ openPicker }: { openPicker: OpenPickerFunction; }) => Element; shouldHideCameraOption: true; }' is not assignable to type 'IntrinsicAttributes & AttachmentPickerProps'.
|
|
typecheck:
src/pages/iou/request/step/IOURequestStepScan/index.native.tsx#L317
Type '(file: File) => void' is not assignable to type '(file: FileObject) => void'.
|
typecheck:
src/pages/iou/request/step/IOURequestStepScan/index.native.tsx#L366
Argument of type 'typeof IOURequestStepScan' is not assignable to parameter of type 'ComponentType<WithWritableReportOrNotFoundOnyxProps & { route: Route; } & RefAttributes<unknown>>'.
|
typecheck:
src/pages/iou/request/step/IOURequestStepScan/index.tsx#L74
'_' refers to a UMD global, but the current file is a module. Consider adding an import instead.
|
typecheck:
src/pages/iou/request/step/IOURequestStepScan/index.tsx#L84
'_' refers to a UMD global, but the current file is a module. Consider adding an import instead.
|
typecheck:
src/pages/iou/request/step/IOURequestStepScan/index.tsx#L133
Type '"camera"' is not assignable to type 'PermissionName'.
|