title: Declare function as a parameter in Typings Declaration
body: <p>In my <code>globals.d.ts</code> I export multiple functions whose parameters are also functions. An example can be viewed below:</p>
  
  <pre><code>/**
   * Does something
   * @param {function(string): void} bar - a parameter
   * @returns {void}
   */
  export function foo(bar: function(string): void): void;
  </code></pre>
  
  <p>ESLint is showing multiple errors stating that:<code>JSDoc types can only be used inside documentation comments.</code>. I tried fixing this error by removing the types from the function and only stating them in the comments, but then the type of the parameter becomes <code>any (*)</code>. I also tried adding the <code>"valid-jsdoc": "off"</code> rule in the <code>.eslintrc.json</code>file, with no success. Is there a way to remove the warning without losing the type of the parameter?</p>