title: How to declare a module to do named imports?
body: <p>I'm using <a href="https://github.com/apollographql/graphql-tag" rel="nofollow noreferrer">graphql-tag</a>. My files are like that.</p>
  
  <p>./operation.graphql</p>
  
  <pre><code>Query User {
     ...
  }
  </code></pre>
  
  <p>./test.ts</p>
  
  <pre><code>import { User } from './operation.graphql'; /// Module ''*.graphql'' has no exported member 'User'.
  </code></pre>
  
  <p>./index.d.ts</p>
  
  <pre><code>declare module '*.graphql' {
      import { DocumentNode } from 'graphql';
  
      const value:DocumentNode;
  
      export default value;
  }
  </code></pre>
  
  <p>A application is work well, but I want to prevent that error.</p>
  
  <p>When I do default import is work well, but as you see, I got an error at named imports.</p>
  
  <p>How to declare this? Thanks. :)</p>