title: How can I import something as both a type and a value in TypeScript?
body: <p>I have some TypeScript code that has values as the <code>PublicKey</code> type, that also uses the <code>PublicKey</code> constructor to turns strings into <code>PublicKey</code>s.</p>
  <pre><code>import type { Connection, Keypair, PublicKey } from &quot;@solana/web3.js&quot;;
  import { PublicKey } from &quot;@solana/web3.js&quot;;
  </code></pre>
  <p>This fails with the error:</p>
  <pre><code>Duplicate identifier 'PublicKey'
  </code></pre>
  <p>How can I use <code>Keypair</code> both as a type and a value?</p>