Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AnderssonPeter opened this issue Aug 7, 2024 · 1 comment · May be fixed by #138
Open

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

AnderssonPeter opened this issue Aug 7, 2024 · 1 comment · May be fixed by #138

Comments

@AnderssonPeter
Copy link

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

export function formatOptions(options: LimitedUserConfig) {

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant