Skip to content

Values of enum-like objects are not quoted #1727

@srmagura

Description

@srmagura

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions