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
[warning] functions/someFile.foo (CallSignature), defined in ./src/functions/someFile.ts, does not have any documentation
Problem
Given the following code, TypeDoc complains that the second signature is missing a comment.
/** Helper function to do something. */exportfunctionfoo(fatal: true): string;exportfunctionfoo(fatal: false): string|undefined;exportfunctionfoo(fatal: boolean): string|undefined{return"";}
TypeScript copies the comment from the first signature to other signatures when a function is overloaded and they do not specify a separate comment.
Suggested Solution
TypeDoc should copy the comment from the first signature to other signatures when a function is overloaded and they do not specify a separate comment.
This should also work for method declarations, Array.reduce in the standard library has a similar structure.
Search Terms
[warning] functions/someFile.foo (CallSignature), defined in ./src/functions/someFile.ts, does not have any documentation
Problem
Given the following code, TypeDoc complains that the second signature is missing a comment.
TypeScript copies the comment from the first signature to other signatures when a function is overloaded and they do not specify a separate comment.
Suggested Solution
TypeDoc should copy the comment from the first signature to other signatures when a function is overloaded and they do not specify a separate comment.
This should also work for method declarations,
Array.reduce
in the standard library has a similar structure.Reported on discord by @Zamiell
The text was updated successfully, but these errors were encountered: