diff --git a/src/libs/isReportMessageAttachment.js b/src/libs/isReportMessageAttachment.ts similarity index 71% rename from src/libs/isReportMessageAttachment.js rename to src/libs/isReportMessageAttachment.ts index e107df8ddfaa..3f9e9d2de201 100644 --- a/src/libs/isReportMessageAttachment.js +++ b/src/libs/isReportMessageAttachment.ts @@ -1,13 +1,18 @@ import CONST from '../CONST'; +type IsReportMessageAttachmentParams = { + text: string; + html: string; + translationKey: string; +}; + /** * Check whether a report action is Attachment or not. * Ignore messages containing [Attachment] as the main content. Attachments are actions with only text as [Attachment]. * - * @param {Object} reportActionMessage report action's message as text, html and translationKey - * @returns {Boolean} + * @param reportActionMessage report action's message as text, html and translationKey */ -export default function isReportMessageAttachment({text, html, translationKey}) { +export default function isReportMessageAttachment({text, html, translationKey}: IsReportMessageAttachmentParams): boolean { if (translationKey) { return translationKey === CONST.TRANSLATION_KEYS.ATTACHMENT; }