Skip to content

Commit

Permalink
docs: fix #1559 publishMessage return type documentation (#1560)
Browse files Browse the repository at this point in the history
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/nodejs-pubsub/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)

Fixes #1559 🦕
  • Loading branch information
kooba committed May 17, 2022
1 parent 29d38a1 commit b173d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ export class Topic {
* ```
* @example If the callback is omitted, we'll return a Promise.
* ```
* const [messageId] = await topic.publishMessage({data});
* const messageId = await topic.publishMessage({data});
* ```
*/
publishMessage(message: MessageOptions): Promise<string>;
Expand Down

0 comments on commit b173d4c

Please sign in to comment.