Skip to content

dataconnect: Export all generated types/enums at root and convert Enums to TS-idiomatic string unions #10908

Description

@vzsolt1981

Operation response types, model shapes, and enum definitions are generated internally but not cleanly re-exported at the top-level index module. Developers are forced to use utility types like Awaited<ReturnType> or deep internal imports just to type component props, state, or helper functions.

GraphQL enums are currently generated as standard TypeScript enum constructs. In modern TypeScript, standard enums carry runtime overhead, nominal typing quirks, and poor ergonomics when passing raw strings (e.g., from API payloads, form inputs, or route params).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions