From b6c6b8fb702b49e18f08121707bfbe7b6d6cba34 Mon Sep 17 00:00:00 2001 From: PaulDremanovich Date: Sat, 13 Apr 2024 17:36:06 +0400 Subject: [PATCH] fix: jsdoc --- .../bot-commands/utils/extractCommandsFromMessages.ts | 6 +++--- src/store/modules/bot-commands/utils/uniqCommand.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/store/modules/bot-commands/utils/extractCommandsFromMessages.ts b/src/store/modules/bot-commands/utils/extractCommandsFromMessages.ts index 3ba916679..03912c8da 100644 --- a/src/store/modules/bot-commands/utils/extractCommandsFromMessages.ts +++ b/src/store/modules/bot-commands/utils/extractCommandsFromMessages.ts @@ -3,9 +3,9 @@ import { NormalizedChatMessageTransaction } from '@/lib/chat/helpers' /** * The function retrieves all bot commands from the message array - * @param {string} recipientId Message recipient address - * @param {NormalizedChatMessageTransaction[]} messages Array of normalized messages - * @return {BotCommand[]} Bot commands array + * @param recipientId Message recipient address + * @param messages Array of normalized messages + * @return Bot commands array * */ export function extractCommandsFromMessages( recipientId: string, diff --git a/src/store/modules/bot-commands/utils/uniqCommand.ts b/src/store/modules/bot-commands/utils/uniqCommand.ts index 58650c8c9..b9deaece6 100644 --- a/src/store/modules/bot-commands/utils/uniqCommand.ts +++ b/src/store/modules/bot-commands/utils/uniqCommand.ts @@ -3,8 +3,8 @@ import { BotCommand } from '@/store/modules/bot-commands/types' /** * The function returns an array of unique bot commands. * If a duplicate is detected, the function gives preference to the one with the larger timestamp. - * @param {BotCommand[]} commands Bot commands array - * @return {BotCommand[]} An array of unique bot commands + * @param commands Bot commands array + * @return An array of unique bot commands * */ export function uniqCommand(commands: BotCommand[]) { const result: BotCommand[] = []