openapi-react-query-codegen icon indicating copy to clipboard operation
openapi-react-query-codegen copied to clipboard

When enabeling --useDateType send the correct information to @hey-api/openapi-ts

Open AnderssonPeter opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

  types: {
    dates: 'types+transform',
  },

in the configuration to @hey-api/openapi-ts currently i think it sends true but I'm not 100% sure, it seems it is done here https://github.com/7nohe/openapi-react-query-codegen/blob/34f561abcda3c9c947aed6befe6150952898e124/src/common.mts#L150

Documentation about the feature can be found here

Describe the solution you'd like When this is done correctly both the typescript defintion should use the type Date and also the result should be Date.

AnderssonPeter avatar Aug 07 '24 06:08 AnderssonPeter

I'm not 100% sure but I think #136 needs to be merged before this can be fixed.

AnderssonPeter avatar Aug 08 '24 08:08 AnderssonPeter

What is the status of this issue?

maniator avatar Apr 04 '25 19:04 maniator