fix(multer): pre-v1 dead code removal (#42025)

It seems the 'stream' property of the multer file was removed:
https://git.io/Jv3KM
and was never part of v1 version:
https://git.io/Jv3K9

Also:
- udpate linting config to latest one
- fix linting errors in TD header

Thanks!
This commit is contained in:
Piotr Błażejewicz (Peter Blazejewicz) 2020-02-06 19:43:38 +01:00 committed by GitHub
parent c72d2cfdd0
commit 45cfedf917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 12 deletions

View File

@ -1,7 +1,7 @@
// Type definitions for multer 1.4
// Project: https://github.com/expressjs/multer
// Definitions by: jt000 <https://github.com/jt000>
// vilicvane <https://vilic.github.io/>
// vilicvane <https://github.com/vilic>
// David Broder-Rodgers <https://github.com/DavidBR-SW>
// Michael Ledin <https://github.com/mxl>
// HyunSeob Lee <https://github.com/hyunseob>
@ -11,7 +11,6 @@
// TypeScript Version: 2.8
import { Request, RequestHandler } from 'express';
import { Readable } from 'stream';
declare global {
namespace Express {
@ -40,8 +39,6 @@ declare global {
path: string;
/** `MemoryStorage` A Buffer containing the entire file. */
buffer: Buffer;
/** A readable stream of this file. */
stream: Readable;
}
}

View File

@ -1,8 +1 @@
{
"extends": "dtslint/dt.json",
"rules": {
// TODO
"npm-naming": false,
"dt-header": false
}
}
{ "extends": "dtslint/dt.json" }