title: Property 'end' in type 'GridFSBucketWriteStream' is not assignable to the same property in base type 'WritableStream'
body: <pre><code>node_modules/mongodb/mongodb.d.ts:3314:5 - error TS2416: Property 'end' in type 'GridFSBucketWriteStream' is not assignable to the same property in base type 'Writable'.
    Type '{ (): void; (chunk: Buffer): void; (callback: Callback&lt;void | GridFSFile&gt;): void; (chunk: Buffer, callback: Callback&lt;void | GridFSFile&gt;): void; (chunk: Buffer, encoding: BufferEncoding): void; (chunk: Buffer, encoding: BufferEncoding, callback: Callback&lt;...&gt;): void; }' is not assignable to type '{ (cb?: () =&gt; void): this; (chunk: any, cb?: () =&gt; void): this; (chunk: any, encoding: BufferEncoding, cb?: () =&gt; void): this; }'.
  
  3314     end(chunk: Buffer, encoding: BufferEncoding | undefined, callback: Callback&lt;GridFSFile | void&gt;): void;
           ~~~
  </code></pre>
  <p>Earlier it was right, but when i added the feature to upload static files (images) to s3 bucket (using multer and multer-s3), I am getting this error on doing <code>yarn dev</code> to start the server which runs like this <code>&quot;dev&quot;: &quot;NODE_ENV=dev nodemon -e ts --exec \&quot;npm run compile\&quot;&quot;,</code></p>
  <p>My package.json scripts</p>
  <pre class="lang-json prettyprint-override"><code>&quot;scripts&quot;: {
      &quot;compile&quot;: &quot;tsc &amp;&amp; node build/index.js | pino-pretty&quot;,
      &quot;dev&quot;: &quot;NODE_ENV=dev nodemon -e ts --exec \&quot;npm run compile\&quot;&quot;,
      &quot;start&quot;: &quot;NODE_ENV=prod node build/index.js | pino-pretty&quot;,
      &quot;lint&quot;: &quot;eslint . --ext .ts&quot;
  },
  </code></pre>
  <p>Update: It works somehow with the <code>start</code> script but not with the <code>dev</code> script. Also, it has taken the &quot;dev&quot; powers from me :(</p>