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

Values of enum-like objects are not quoted #1727

Closed
srmagura opened this issue Oct 3, 2021 · 0 comments
Closed

Values of enum-like objects are not quoted #1727

srmagura opened this issue Oct 3, 2021 · 0 comments
Labels
bug Functionality does not match expectation

Comments

@srmagura
Copy link
Contributor

srmagura commented Oct 3, 2021

Search terms

Enum, @enum

Expected Behavior

As discussed in #1726, TypeDoc should place quotes around the values for this code from the example:

/**
 * @enum
 */
export const EnumLikeObject = {
    Pending: "pending",
    InProgress: "inProgress",
    Completed: "completed",
} as const;

Actual Behavior

No quotes are around pending, inProgress, and completed.

@srmagura srmagura added the bug Functionality does not match expectation label Oct 3, 2021
@Gerrit0 Gerrit0 closed this as completed in 244e904 Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

No branches or pull requests

1 participant