I'm using graphql-tag. My files are like that.
./operation.graphql
Query User {
...
}
./test.ts
import { User } from './operation.graphql'; /// Module ''*.graphql'' has no exported member 'User'.
./index.d.ts
declare module '*.graphql' {
import { DocumentNode } from 'graphql';
const value:DocumentNode;
export default value;
}
A application is work well, but I want to prevent that error.
When I do default import is work well, but as you see, I got an error at named imports.
How to declare this? Thanks. :)