Module '' has already exported a member named 'addTagTypes' #4383
Unanswered
dankeboy36
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi There,
I generate rtk query APIs from multiple OpenAPI specs. All works fine, but when I want to export all the generated code from a single
api.ts
file, I get an error because theaddTagTypes
symbol is exported from each generated API file.This is expected because, unlike the
exportName
, theaddTagTypes
cannot be customized:redux-toolkit/packages/rtk-query-codegen-openapi/src/codegen.ts
Line 158 in d6e7cca
I am new to this tech stack and wondered how others handle such a name collision when using multiple APIs in a single app.
My example:
base.ts
(click to see)examplesApi.ts
(click to see)callbackApi.ts
(click to see)api.ts
:index.ts
:Would the maintainers consider accepting the customization of the exported
addTagTypes
symbol as a new feature?Thank you!
Example spec sources:
api-with-examples.json
callback-example.json
Beta Was this translation helpful? Give feedback.
All reactions