Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect output for Typescript enums #113

Open
cowwoc opened this issue Oct 21, 2020 · 0 comments
Open

Incorrect output for Typescript enums #113

cowwoc opened this issue Oct 21, 2020 · 0 comments

Comments

@cowwoc
Copy link

cowwoc commented Oct 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant