Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -822,12 +822,12 @@ export class Topic {
* const [messageId] = await topic.publishMessage({data});
* ```
*/
publishMessage(message: MessageOptions): Promise<[string]>;
publishMessage(message: MessageOptions): Promise<string>;
publishMessage(message: MessageOptions, callback: PublishCallback): void;
publishMessage(
message: MessageOptions,
callback?: PublishCallback
): Promise<[string]> | void {
): Promise<string> | void {
// Make a copy to ensure that any changes we make to it will not
// propagate up to the user's data.
message = Object.assign({}, message);
Expand Down
2 changes: 1 addition & 1 deletion system-test/pubsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ describe('pubsub', () => {

function publish(messageCount: number) {
const data = Buffer.from('Hello, world!');
const promises: Array<Promise<[string]>> = [];
const promises: Array<Promise<string>> = [];

let id = 0;

Expand Down