Commit Graph
15 Commits
Author SHA1 Message Date
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Bowden Kelly 1d05b34fc4 Merge pull request #19112 from HyunSeob/patch-1
multer: Fix a problem when implement the `_handleFile`
2017-08-22 10:51:49 -07:00
Hudson 38054316ae Use Partial instead of defining new interface 2017-08-21 11:40:35 +09:00
Andy 924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
HyunSeob 315f0031df Fix a problem when implement the _handleFile
When implementing the `StorageEngine`, I did have to implement `_handleFile` & `_removeFile`.
But it had a problem. When I call the `callback` function, I have to specify all fields of the `Express.Multer.File` interface. Actually, it's not required.

So, I add a new interface which named `FileInfo`. It's similar to `Express.Multer.File`, but all fields are optional.
2017-08-18 15:15:58 +09:00
Huruikagi 104a9679e1 Merge remote-tracking branch 'upstream/master' into update_multer_filefilter
# Conflicts:
#	types/multer/index.d.ts
#	types/multer/multer-tests.ts
2017-06-16 15:00:31 +09:00
Leonard Thieu 1c3565933c :( 2017-06-13 13:00:42 -04:00
Daniel Rosenwasser 1a3263397f Merge pull request #16924 from mxl/multer-files
multer - Request.files can be an array
2017-06-12 00:14:31 -07:00
Huruikagi 1691d92be2 Allow null in Options.fileFilter.callback first parameter 2017-06-09 11:09:49 +09:00
Huruikagi 5d7bff7178 Added a test for fileFilter. 2017-06-09 11:05:18 +09:00
jimjaeger d3601e3783 Update index.d.ts
Add preservePath parameter as described https://github.com/expressjs/multer
2017-06-07 22:19:41 +02:00
Michael Ledin ee1b35dfcf Request.files can be an array. 2017-06-03 00:14:18 +03:00
Michael Ledin 9fee182673 Update multer definitions:
- add version 1.3
- fix tslint errors
- enable strictNullChecks option
2017-06-03 00:12:09 +03:00
Ronan Jouchet 0abba50bae [multer] Allow null in DiskStorageOptions.destination.callback first parameter (#16617)
* `null` is used [in the docs](https://github.com/expressjs/multer#diskstorage)
* `null` was allowed in `callback` for brother interface element `filename` as part of PR https://github.com/DefinitelyTyped/DefinitelyTyped/pull/14112/files , but `destination` wasn't updated at this time.
2017-06-02 06:42:09 -07:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00