title: Using interface defined in JSDoc in Typescript
body: <p>I'm trying to setup TypeScript on a JS codebase with <code>allowJs</code> and <code>checkJs</code></p>
  
  <p><a href="https://github.com/chartjs/Chart.js/blob/771fe520957199b32a26205c14f4816002842bcb/src/core/core.plugins.js#L30" rel="nofollow noreferrer">I have a JSDoc that uses an interface as a parameter type</a>:</p>
  
  <pre><code> * @param {IPlugin[]|IPlugin} plugins plugin instance(s).
  </code></pre>
  
  <p><a href="https://github.com/chartjs/Chart.js/blob/771fe520957199b32a26205c14f4816002842bcb/src/core/core.plugins.js#L173" rel="nofollow noreferrer">In the same file</a>, I have the interface defined via JSDoc:</p>
  
  <pre><code>/**
   * Plugin extension hooks.
   * @interface IPlugin
   * @since 2.1.0
   */
  </code></pre>
  
  <p><a href="https://jsdoc.app/tags-interface.html" rel="nofollow noreferrer">This looks like valid JSDoc to me</a>. However, TypeScript is failing on it:</p>
  
  <blockquote>
    <p>src/core/core.plugins.js:243:13 - error TS2304: Cannot find name 'IPlugin'.</p>
    
    <p>243   * @param {IPlugin[]|IPlugin} plugins plugin instance(s).</p>
  </blockquote>
  
  <p>Any ideas how I get this to work?</p>