Skip to content

Commit

Permalink
docs: correct the comment for command decorator (#1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Nov 3, 2022
1 parent e4b4d3b commit d20dfb1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/remirror__core/src/builtins/builtin-decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ export function helper(options: HelperDecoratorOptions = {}) {
* return 'my';
* }
*
* @command() myCommand(text: string): CommandFunction {return ({ tr, dispatch
* }) => {dispatch?.(tr.insertText('my command ' + text)); return true;
* @command()
* myCommand(text: string): CommandFunction {
* return ({ tr, dispatch }) => {
* dispatch?.(tr.insertText('my command ' + text));
* return true;
* }
* }
* }
Expand Down

1 comment on commit d20dfb1

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://remirror.io as production
🚀 Deployed on https://6363c78cde31030581e02f36--remirror.netlify.app

Please sign in to comment.