dotansimha / dotansimha/graphql-code-generator

Import types preset should work with typescript-resolver

Open
#8,378 1 comment 0 reactions 0 assignees View on GitHub
core
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

**Is your feature request related to a problem? Please describe.**

Right now the the `import-types` preset mostly works with the `typescript-resolver` plugin except for the import that seems to be missing.

**Describe the solution you'd like**

Make sure the import is included in the file and it will work perfectly. This seems to be due to the condition check it does to verify if it should include the file or not.

**Describe alternatives you've considered**

Currently adding the import with:
```yaml
- add:
content: "import type * as Types from './shared';"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.