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
Bug description (at least I would consider it as a bug):
If you feed TypeDoc with the following TypeScript code then those "someLocalFunction('...')" expressions will be shown in the TypeDoc output. That's surely not intended, is it?
Wouldn't it be better to show the corresponding values only in case they are literals (string literals, number literals, boolean literals) and hide them in case of expressions?
TypeScript source code:
exportconstSomeObject={a: someLocalFunction('a'),b: someLocalFunction('b')};exportclassSomeClass{staticreadonlya: string=someLocalFunction('a')staticreadonlyb: string=someLocalFunction('b')}functionsomeLocalFunction(arg: string): string{return'CONST_VALUE_'+arg.toUpperCase();// just for demo purposes}
This was intended behavior, but I agree - it wasn't good. 0.20.1 will now render values only if they are determined to be "simple", and otherwise render ... to indicate that there was something there, but was too complex for rendering.
Thanks for the solution for this! It didn't click until I saw this issue.
Bug description (at least I would consider it as a bug):
If you feed TypeDoc with the following TypeScript code then those "someLocalFunction('...')" expressions will be shown in the TypeDoc output. That's surely not intended, is it?
Wouldn't it be better to show the corresponding values only in case they are literals (string literals, number literals, boolean literals) and hide them in case of expressions?
TypeScript source code:
TypeDoc output:
Thanks a lot in advance.
(Tested with TypeDoc 0.11.1, TypeScript 2.7.2 on Windows 10)
The text was updated successfully, but these errors were encountered: