Skip to content

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

Open
@AnderssonPeter

Description

@AnderssonPeter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions