From 29afcdcb64e63b02d80b9b2a74082ce987929210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ska=C5=82ka?= Date: Thu, 7 Sep 2023 15:27:44 +0200 Subject: [PATCH] migrate Receipt.js to TS --- src/libs/actions/{Receipt.js => Receipt.ts} | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) rename src/libs/actions/{Receipt.js => Receipt.ts} (72%) diff --git a/src/libs/actions/Receipt.js b/src/libs/actions/Receipt.ts similarity index 72% rename from src/libs/actions/Receipt.js rename to src/libs/actions/Receipt.ts index fbe9c22faaa2..530db149d902 100644 --- a/src/libs/actions/Receipt.js +++ b/src/libs/actions/Receipt.ts @@ -3,12 +3,8 @@ import ONYXKEYS from '../../ONYXKEYS'; /** * Sets the upload receipt error modal content when an invalid receipt is uploaded - * - * @param {Boolean} isAttachmentInvalid - * @param {String} attachmentInvalidReasonTitle - * @param {String} attachmentInvalidReason */ -function setUploadReceiptError(isAttachmentInvalid, attachmentInvalidReasonTitle, attachmentInvalidReason) { +function setUploadReceiptError(isAttachmentInvalid: boolean, attachmentInvalidReasonTitle: string, attachmentInvalidReason: string) { Onyx.merge(ONYXKEYS.RECEIPT_MODAL, { isAttachmentInvalid, attachmentInvalidReasonTitle,