title: Typescript import type Eslint: import/named
body: <p>I use Eslint for my project, use:</p>
  
  <ul>
  <li>parser: <code>@typescript-eslint/parser</code> 1.4.2</li>
  <li>plugin: <code>@typescript-eslint/eslint-plugin</code> 1.4.2</li>
  <li>resolver: <code>eslint-import-resolver-typescript</code> 1.1.1</li>
  <li>rule extends: <code>airbnb-base</code> and <code>plugin:@typescript-eslint/recommended</code></li>
  </ul>
  
  <p>or you can check my <code>.eslintrc</code>:</p>
  
  <pre><code>{
    "parser": "@typescript-eslint/parser",
    "plugins": [
      "@typescript-eslint"
    ],
    "extends": ["airbnb-base", "plugin:@typescript-eslint/recommended"],
    "settings": {
      "import/parsers": {
        "@typescript-eslint/parser": [".ts"]
      },
      "import/resolver": {
        "typescript": {}
      }
    },
    "rules": {
      "no-plusplus": "off",
      "import/no-cycle": "warn",
      "@typescript-eslint/indent": ["error", 2],
      "@typescript-eslint/explicit-member-accessibility": "off"
    }
  }
  </code></pre>
  
  <p>In file <code>A.ts</code> I use: <code>export type Id = string;</code> and import from <code>B.ts</code>: <code>import { Id } from '../A';</code></p>
  
  <p>I tried to use:</p>
  
  <pre><code>import A from '../A';
  </code></pre>
  
  <p>and call A.Id but ide throw error:</p>
  
  <blockquote>
    <p>A only refers to a type, but is being used as a namespace here</p>
  </blockquote>
  
  <p>Two way has an error, one from <code>eslint</code>, one from IDE (Vs Code, maybe Tshint)</p>
  
  <p>Can you help me fix one of them?</p>
  
  <p>Thank in advance!</p>