Skip to content

Input fields lose their jsdoc comments #482

@paul-sachs

Description

@paul-sachs

Reproduction steps:

  1. Use any given service method whose input fields contain some jsdoc comments
  2. Write out a query like useQuery(serviceMethod, { someField: "whatever" })

Notice that hovering over someField doesn't show the jsdoc associated with the field.

CleanShot 2024-11-13 at 14 26 03@2x

I believe this may be due to our mapped type MessageInitShape transforming the keys and losing the jsdoc info (see TS issue) but not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions