better-docs icon indicating copy to clipboard operation
better-docs copied to clipboard

Incorrect output for Typescript enums

Open cowwoc opened this issue 4 years ago • 0 comments

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.

cowwoc avatar Oct 21 '20 06:10 cowwoc