connect-query-es icon indicating copy to clipboard operation
connect-query-es copied to clipboard

Input fields lose their jsdoc comments

Open paul-sachs opened this issue 1 year ago • 0 comments

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.

paul-sachs avatar Nov 13 '24 19:11 paul-sachs