Skip to content

Commit

Permalink
feat: deprecate getOfMsgParams in favor of execCmd and `getUpdate…
Browse files Browse the repository at this point in the history
…AndExecCmdFn`

Ref: #28
  • Loading branch information
atheck committed Dec 2, 2022
1 parent f006351 commit 0cfd473
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Testing/getOfMsgParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Cmd } from "../Types";
* Extracts the messages out of a command.
* @param cmd The command to process.
* @returns The array of messages.
* @deprecated Use `execCmd` instead or create an update function by using `getUpdateAndExecCmdFn`.
*/
function getOfMsgParams<TMessage> (cmd?: Cmd<TMessage>): TMessage [] {
const msgNames: TMessage [] = [];
Expand Down

0 comments on commit 0cfd473

Please sign in to comment.