mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
parent
c72d2cfdd0
commit
45cfedf917
5
types/multer/index.d.ts
vendored
5
types/multer/index.d.ts
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,8 +1 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
// TODO
|
||||
"npm-naming": false,
|
||||
"dt-header": false
|
||||
}
|
||||
}
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user