better-docs
better-docs copied to clipboard
Incorrect output for Typescript enums
Given this input:
/**
* The encodings supported by the terminal.
*/
enum TerminalEncoding
{
/**
* A terminal that does not support any colors.
*/
NONE,
/**
* Node terminal supports a 16-color palette.
*/
NODE_16_COLORS,
/**
* Node terminal supports a 256-color palette.
*/
NODE_256_COLORS,
/**
* Node terminal supports a 24-bit color palette.
*/
NODE_16MILLION_COLORS
}
I am getting two global members in the output:
TerminalEncoding
and TerminalEncoding[undefined]
4 times (one per enum value).
I assume that the latter should read TerminalEncoding.NODE
, TerminalEncoding.NODE_16_COLORS
and so on.