You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case: allow mocking easily while being type-safe.
I do see the QueryOperation type with the union but it misses the response type in each object. I can tweak with TypeScript to get for example ApiCategoriesGetCollectionVariables from QueryOperation, then remove the suffix and add as suffix Response but it's a bit annoying (but still doable).
On the other side, I'm stuck because for mutations there is no such union type, so it's impossible to infer operationId/path since they are used as hard values inside their fetch method.
Having them centralized and normalized would help extending the default generation.
Thank you,
The text was updated successfully, but these errors were encountered:
Hi @fabien0102 ,
My use case: allow mocking easily while being type-safe.
I do see the
QueryOperation
type with the union but it misses the response type in each object. I can tweak with TypeScript to get for exampleApiCategoriesGetCollectionVariables
fromQueryOperation
, then remove the suffix and add as suffixResponse
but it's a bit annoying (but still doable).On the other side, I'm stuck because for mutations there is no such union type, so it's impossible to infer
operationId
/path
since they are used as hard values inside theirfetch
method.Having them centralized and normalized would help extending the default generation.
Thank you,
The text was updated successfully, but these errors were encountered: