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
This seems like it will end up as a design limitation to me. The potential for ambiguity is really high.
/** * @param options.min What does this get applied to? */functionfoo(options: {min: number,max: number}|{min: ()=>number}){return0;}
IMO it wouldn't hurt if the comment gets applied to both, as the parameter usually still does the same.
If the users explicitly want to set it only for one case, they can configure it using the second approach then.
That way it would cover the majority of the cases by default, while still supporting edge cases.
Search terms
Expected Behavior
The jsdocs comments should also be available for union types.
Actual Behavior
Typedoc only attaches the docs for direct reflection/Type literals, but not union types.
Steps to reproduce the bug
Expected
Note:
It works if I change the method signature to:
Environment
The text was updated successfully, but these errors were encountered: