Skip to content

feat: add support custom type imports with --override-import-type#334

Merged
radist2s merged 19 commits into
mainfrom
feat/custom-imports
Jun 1, 2025
Merged

feat: add support custom type imports with --override-import-type#334
radist2s merged 19 commits into
mainfrom
feat/custom-imports

Conversation

@radist2s

@radist2s radist2s commented Jun 1, 2025

Copy link
Copy Markdown
Collaborator

Added a new --override-import-type CLI option to override import paths for specific types in generated files.
This enables replacing default type definitions with custom implementations across generated services.

@changeset-bot

changeset-bot Bot commented Jun 1, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c990dc0

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

This PR includes changesets to release 6 packages
Name Type
@openapi-qraft/tanstack-query-react-plugin Minor
@openapi-qraft/cli Minor
@openapi-qraft/react Minor
@openapi-qraft/plugin Minor
@openapi-qraft/tanstack-query-react-types Minor
@openapi-qraft/openapi-typescript-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

@radist2s radist2s changed the title feat: add support custom type imports with --override-import-type feat: add support custom type imports with --override-import-type Jun 1, 2025
@radist2s radist2s force-pushed the feat/custom-imports branch from 1f80674 to 67299c6 Compare June 1, 2025 11:20
Comment thread website/docs/codegen/CLI/cli.mdx Fixed
@github-actions

This comment has been minimized.

radist2s added 5 commits June 1, 2025 15:24
… has been implemented to allow overriding import paths for specific types in generated files.
…s from `@tanstack/react-query` instead of `@tanstack/query-core`. This simplifies the generated code and makes it easier to override types if needed.
@radist2s radist2s force-pushed the feat/custom-imports branch from 67299c6 to c990dc0 Compare June 1, 2025 11:24
@radist2s radist2s marked this pull request as ready for review June 1, 2025 18:51
@radist2s radist2s merged commit 38d578b into main Jun 1, 2025
13 checks passed
@radist2s radist2s deleted the feat/custom-imports branch June 1, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants