diff --git a/extensions/msteams/src/monitor-handler/message-handler.ts b/extensions/msteams/src/monitor-handler/message-handler.ts index 0844370597b..39e2d1c44a0 100644 --- a/extensions/msteams/src/monitor-handler/message-handler.ts +++ b/extensions/msteams/src/monitor-handler/message-handler.ts @@ -18,6 +18,7 @@ import { import { buildMSTeamsAttachmentPlaceholder, buildMSTeamsMediaPayload, + isRecord, type MSTeamsAttachmentLike, summarizeMSTeamsHtmlAttachments, } from "../attachments.js"; @@ -39,9 +40,6 @@ import { wasMSTeamsBotMentioned, } from "../inbound.js"; -function isRecord(value: unknown): value is Record { - return typeof value === "object" && value !== null; -} function extractTextFromHtmlAttachments(attachments: MSTeamsAttachmentLike[]): string { for (const attachment of attachments) { if (attachment.contentType !== "text/html") {