Skip to content

Commit

Permalink
fix: jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDremanovich committed Apr 13, 2024
1 parent 602c9f0 commit b6c6b8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/store/modules/bot-commands/utils/uniqCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = []
Expand Down

0 comments on commit b6c6b8f

Please sign in to comment.