Skip to content

Commit cd72ce0

Browse files
committed
fix: type error
1 parent 7cfbf75 commit cd72ce0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/libs/fileDownload/validateReceiptFile

src/libs/fileDownload/validateReceiptFile/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type {ReceiptSource} from '@src/types/onyx/Transaction';
12
import {checkIfScanFileCanBeRead} from '@libs/actions/IOU';
23

34
/**
@@ -6,7 +7,7 @@ import {checkIfScanFileCanBeRead} from '@libs/actions/IOU';
67
*/
78
function validateReceiptFile(
89
receiptFilename: string | undefined,
9-
receiptPath: string | undefined,
10+
receiptPath: ReceiptSource | undefined,
1011
receiptType: string | undefined,
1112
onSuccess: (file: File) => void,
1213
onFailure: () => void,

0 commit comments

Comments
 (0)