openapi-react-query-codegen
openapi-react-query-codegen copied to clipboard
When enabeling --useDateType send the correct information to @hey-api/openapi-ts
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.
I'm not 100% sure but I think #136 needs to be merged before this can be fixed.
What is the status of this issue?