title: Gulp: 'function ()' is not assignable to parameter
body: <pre><code>const gulp = require("gulp");
  
  gulp.task("default", function () {
    console.log("Gulp: 'default' has launched.")
  });
  </code></pre>
  
  <p>In this code, I got a warning message <strong>"function (): Argument type Function is not assignable to parameter type Undertaker.TaskFunction"</strong> in WebStorm.</p>
  
  <p>The paramters of <em>task()</em> are <code>taskName</code> and <code>fn</code>. <code>fn</code> takes 'task <em>function</em>'. I can't understand why WebStorm mark <code>function ()</code> as unassignable argument. A lot of people seem to use <code>function ()</code> like that...</p>