Skip to content

Bad JSdoc placement on Topic.setMetadata #1093

@mgabeler-lee-6rs

Description

@mgabeler-lee-6rs

Thanks for stopping by to let us know something could be better!

If the support paths suggested above still do not result in a resolution, please provide the following details.

Environment details

  • OS: Irrelevant
  • Node.js version: Irrelevant
  • npm version: Irrelevant
  • @google-cloud/pubsub version: v2.5.0

Steps to reproduce

  1. Install the latest version of @google-cloud/pubsub
  2. Look for JSdoc for Topicl.setMetadata method
  3. Sadness

There is JSdoc for this method in the source: https://github.com/googleapis/nodejs-pubsub/blob/master/src/topic.ts#L835

However, I believe it is placed incorrectly in relation to the overload declarations. Regardless, it is missing from the published .d.ts file:

    /**
     * In the event that the client fails to publish an ordered message, all
...
     */
    resumePublishing(orderingKey: string): void;
    setMetadata(options: TopicMetadata, gaxOpts?: CallOptions): Promise<SetTopicMetadataResponse>;
    setMetadata(options: TopicMetadata, callback: SetTopicMetadataCallback): void;
    setMetadata(options: TopicMetadata, gaxOpts: CallOptions, callback: SetTopicMetadataCallback): void;
    /**
     * Set the publisher options.
...

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the googleapis/nodejs-pubsub API.type: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions