title: TypeScript tring to import type definition instead of main module
body: <p>I'm trying to import a module, as well as some of the types from its type definition package through DefinitelyTyped.  I installed both:</p>
  <pre><code>npm i -D leaflet
  npm i -D @types/leaflet
  </code></pre>
  <p>(This is going to be a leaflet plugin which requires leaflet as a <code>peerDependency</code>, hence the <code>-D</code> on leaflet itself).</p>
  <p>At the top of a <code>.ts</code> file, I try to import these:</p>
  <pre class="lang-js prettyprint-override"><code>import L from 'leaflet';
  import type { LatLng } from 'leaflet'
  </code></pre>
  <p>But typescript is telling me <code>Module '&quot;/Users/seth/Documents/GitHub/leaflet-topography/node_modules/@types/leaflet/index&quot;' has no default export.ts(1192)</code>.  That is true, but I'm not trying to import <code>L</code> from the type definitions, but from the leaflet package itself.  Why is typescript assuming that this is a type definition?  How can I change that so that the <code>L</code> that I'm importing is the leaflet library itself?</p>