types are not imported into graphqlStores.ts
See original GitHub issueHello!
I just put together a graphqlrc.yaml
config as per the tutorial, and when running yarn gen, the files are generated.
Having a closer look at graphqlStores.ts
, I noticed that the types used in the files aren’t imported, therefore ESLint is complaining.
Is that something you came across before?
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Typescript types for code that is not imported by typescript?
The answer to my question appears to be here: @types/googlemaps/index.d.ts' is not a module That is, I can use a triple slash directive, ......
Read more >Preset import-types not importing typescript-operations in all ...
Describe the bug I have a monorepo with a root codegen.yml including this: generates: packages/api/src/types/common.ts: plugins: ...
Read more >Documentation - TypeScript 3.8
import type only imports declarations to be used for type annotations and declarations. It always gets fully erased, so there's no remnant of...
Read more >type-only imports — A new TypeScript feature that benefits ...
Example 1 — Ambiguous re-export · Babel removes everything from our types module because it only contained types, which have no use in...
Read more >Advanced type safety (Reference) - Prisma
You can import the Prisma namespace and use dot notation to access types ... is not needed as TypeScript will infer the type...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you for the lib. While you’re at it, some quick notes:
codegen
was not indented properly.codegen
is at the same level asdocuments
, the config failed me withI ended up simplifying the config to:
@jycouet
I’ve put up a pull request to add @gregoryforel! 🎉