title: How to properly create a types npm package for a private feed
body: <p>I have a private NPM package feed I want to use for scoped packages. </p>
  
  <p>I've read the <a href="https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html" rel="nofollow noreferrer">Publishing</a> article of the TypeScript docs. Also I tried to create the package according to the <a href="https://registry.npmjs.org/@types/jquery/-/jquery-2.0.48.tgz" rel="nofollow noreferrer">@types/jquery</a> package.</p>
  
  <p>So this is what I came up with: Created (and published) a package with the name "@myscope/i18n". It's a pretty simple one and contains a .d.ts file with the declaration of a global interface <code>I18N</code> with the method <code>translate(string)</code>. The tarball includes the following files:</p>
  
  <p><em>index.d.ts</em></p>
  
  <pre><code>/**
   * Static members of I18N
   */
  interface I18NStatic {
      /**
       * Returns the translation value based on the specified key
       *
       * @param key The translation key.
      */
      translate(key: string): string;
  }
  
  declare module "i18n" {
      export = I18N;
  }
  declare var I18N: I18NStatic;
  </code></pre>
  
  <p><em>package.json</em></p>
  
  <pre><code>{
    "name": "@myscope/i18n",
    "version": "1.0.11",
    "description": "TypeScript definitions for MyScope Translator",
    "license": "MIT",
    "main": "",
    "repository": {
      "type": "git",
      "url": "https://myscope.visualstudio.com/example/_git/i18n"
    },
    "scripts": {},
    "dependencies": {},
    "peerDependencies": {},
    "typeScriptVersion":  "2.0" 
  }
  </code></pre>
  
  <p>I consume it in a ASP.NET Core project with the following <em>package.json</em></p>
  
  <pre><code>{
    "version": "1.0.0",
    "name": "asp.net",
    "private": true,
    "devDependencies": {
      "@types/jquery": "2.0.48",
      "@types/semantic-ui": "2.2.4",
      "@myscope/i18n": "1.0.11"
    }
  }
  </code></pre>
  
  <p>But when I try to use <code>I18N.translate(string)</code> in my TS files I always get this Error</p>
  
  <p><strong>Error TS2304  (TS) Cannot find name 'I18N'.   Example.UI.WebApp (tsconfig project)    C:\Users\Sandro\Source\Repos\example\Example.UI.WebApp\TypeScript\Address.ts</strong></p>
  
  <p>When I use index.d.ts directly in my project (not via npm) it works perfectly. But as soon as I delete it again, it stops working. I have no errors or warnings in the "Dependencies/npm" section of the project in solution explorer view.</p>
  
  <p>What am I missing?</p>