dotansimha / dotansimha/graphql-code-generator
Duplicate Omit export when using index.ts re-export
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
There is two or more files generated in same folder using `near-operation-file` preset, and when re-exporting them using index.ts with following manner:
```ts
export * from "./entityA.generated";
export * from "./entityB.generated";
```
I have to face with typescript error: `Module "./entityA.generated.graphql" has already exported a member named 'Omit'. Consider explicitly re-exporting to resolve the ambiguity.`
I found that type `Omit` force exported from all generated typescript files. But why?
https://github.com/dotansimha/graphql-code-generator/blob/3dac6d8c96eebdd74cb3bb33ce8e376fbc12d848/packages/plugins/other/visitor-plugin-common/src/utils.ts#L335
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.