You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 21, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 21, 2026. It is now read-only.
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;/***Setthepublisheroptions.
...
Actually, there are a bunch of them missing. There are a lot fewer that have JSDoc in the .d.ts that have them than the ones that don't. I wonder if something changed in the way the typings JSDoc is generated, because the generated HTML doc pages do actually have the comments.
It seems TypeScript still doesn't want to support JavaScript style overloaded functions/methods. I'm going to flip this to a feature request, because I think it's going to take more effort to correct. :|
Hmm, the answer I'm getting seems to be: this isn't a great solution, but it's less bad than the other solutions we considered. TypeScript and JSDoc have a complicated relationship, apparently. It's intentional that we are just putting the comments into the generated .js files, but it does seem confusing to me that it's in the .d.ts for only some of the methods.
Activity
feywind commentedon Aug 20, 2020
Thanks for the report! I'll add this to my list of docs/comments cleanup issues.
feywind commentedon Feb 18, 2021
Actually, there are a bunch of them missing. There are a lot fewer that have JSDoc in the .d.ts that have them than the ones that don't. I wonder if something changed in the way the typings JSDoc is generated, because the generated HTML doc pages do actually have the comments.
feywind commentedon Feb 18, 2021
This seems to be related: microsoft/TypeScript#25590
It seems TypeScript still doesn't want to support JavaScript style overloaded functions/methods. I'm going to flip this to a feature request, because I think it's going to take more effort to correct. :|
feywind commentedon Feb 18, 2021
Hmm, the answer I'm getting seems to be: this isn't a great solution, but it's less bad than the other solutions we considered. TypeScript and JSDoc have a complicated relationship, apparently. It's intentional that we are just putting the comments into the generated .js files, but it does seem confusing to me that it's in the .d.ts for only some of the methods.