OpenAPI-Qraft / openapi-qraft

Generate a type-safe OpenAPI client for your React app
https://openapi-qraft.github.io/openapi-qraft/
MIT License
19 stars 1 forks source link

fix(openapi-typescript-plugin): remove `.ts` extension from import paths by default #73

Closed radist2s closed 1 month ago

radist2s commented 1 month ago

This change removes the .ts extension from import paths by default when using the OpenAPI TypeScript plugin. This behavior can be overridden for the @openapi-qraft/tanstack-query-react-plugin using the --openapi-types-import-path <path> option, which allows specifying the full import path, including the .ts extension.

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: ac1b49b891ffaf2614fd6ab2690cc0dc4793e66b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages | Name | Type | | ------------------------------------------ | ----- | | @openapi-qraft/openapi-typescript-plugin | Patch | | @openapi-qraft/cli | Patch | | @openapi-qraft/react | Patch | | @openapi-qraft/plugin | Patch | | @openapi-qraft/tanstack-query-react-plugin | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR