Allow disabling group.exportAs
from @kubb/swagger-tanstack-query
#1111
Labels
Milestone
group.exportAs
from @kubb/swagger-tanstack-query
#1111
What is the problem this feature would solve?
First, thank you all for the great work in this project, this toolkit is great!
When generating queries/mutations with
@kubb/swagger-tanstack-query
, using thegroup
options is nice due to the file structure.However, I couldn't find a way to disable the
group.exportAs
feature, which creates named exports for each group:This makes it verbose to use the hooks, especially if the tag is long:
This might also probably break some bundle optimizations since the hooks are now object properties, loading all JS referenced in that object when importing.
External documents/projects?
No response
What is the feature you are proposing to solve the problem?
Add an option to disable the named export by group feature in the
pluginTanstackQuery
options, such asgroup.exportAs: false
, while still keeping the group file structure and respectingoutput.exportType
.What alternatives have you considered?
For now, I'm simply omitting
group
options so the mainindex.ts
file from this plugin doesn't have the named exports.The text was updated successfully, but these errors were encountered: