Replies: 1 comment
-
|
@arzatskis Right now we only have support for the name and the type. This is probably something we could improve on. What do you want to see as part of context? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, just discovered kubb, seems great tools to replace our home grown solution. Tried setup with
react-queryplugin. Failed to find config / plugin to control output file names / paths.At the moment is seems to use this pattern:
use<Method><Path[0]><Path[1]><Path[...]>.ts. E.g. forapi/documentsoutput isuseGetApiDocuments.ts/usePostApiDocuments.ts. This seems a bit verbose.Tried using
transformers.nameconfig option, but it provides onlynameandtype, nothing else.What I'd like to achieve:
useDocumentsQuery.ts/useDocumentsCreateMutation.tsetc. My assumption was thattransformers.namecontext provides{ method, path }and similar properties, so I could do something like:But maybe I'm looking in the wrong place / config / plugin?
Beta Was this translation helpful? Give feedback.
All reactions