Skip to content

Update tsDocGen.js to cleanly extract union types into array values #4756

@jenny-s51

Description

@jenny-s51

Union types are parsed and stored as a raw string (e.g., "type": "'primary' | 'secondary'"). This is human-readable but not machine-usable / LLM-optimized.

Proposed State: We should explicitly parse these strings into a clean array (e.g., "enumValues": ["primary", "secondary"]).
Why it's critical: This makes the data structured and reliable for an LLM.

Action Item: Modify cli/tsDocGen.js to handle this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions