Socket
Socket
Sign inDemoInstall

@types/multer

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/multer - npm Package Compare versions

Comparing version 0.0.32 to 0.0.33

26

multer/index.d.ts

@@ -51,18 +51,18 @@ // Type definitions for multer

/** A function used to determine what the file should be named inside the folder. Defaults to a random name with no file extension. */
filename?: (req: Express.Request, file: Express.Multer.File, callback: (error: Error, filename: string) => void) => void;
filename?: (req: Express.Request, file: Express.Multer.File, callback: (error: Error | null, filename: string) => void) => void;
}
interface Instance {
/** In case you need to handle a text-only multipart form, you can use any of the multer methods (.single(), .array(), fields()), req.body contains the text fields */
single(): express.RequestHandler;
/** Accept a single file with the name fieldname. The single file will be stored in req.file. */
single(fieldame: string): express.RequestHandler;
/** In case you need to handle a text-only multipart form, you can use any of the multer methods (.single(), .array(), fields()), req.body contains the text fields */
array(): express.RequestHandler;
/** Accept an array of files, all with the name fieldname. Optionally error out if more than maxCount files are uploaded. The array of files will be stored in req.files. */
array(fieldame: string, maxCount?: number): express.RequestHandler;
/** Accept a mix of files, specified by fields. An object with arrays of files will be stored in req.files. */
fields(fields: Field[]): express.RequestHandler;
/** In case you need to handle a text-only multipart form, you can use any of the multer methods (.single(), .array(), fields()), req.body contains the text fields */
any(): express.RequestHandler;
/** In case you need to handle a text-only multipart form, you can use any of the multer methods (.single(), .array(), fields()), req.body contains the text fields */
single(): express.RequestHandler;
/** Accept a single file with the name fieldname. The single file will be stored in req.file. */
single(fieldame: string): express.RequestHandler;
/** In case you need to handle a text-only multipart form, you can use any of the multer methods (.single(), .array(), fields()), req.body contains the text fields */
array(): express.RequestHandler;
/** Accept an array of files, all with the name fieldname. Optionally error out if more than maxCount files are uploaded. The array of files will be stored in req.files. */
array(fieldame: string, maxCount?: number): express.RequestHandler;
/** Accept a mix of files, specified by fields. An object with arrays of files will be stored in req.files. */
fields(fields: Field[]): express.RequestHandler;
/** In case you need to handle a text-only multipart form, you can use any of the multer methods (.single(), .array(), fields()), req.body contains the text fields */
any(): express.RequestHandler;
}

@@ -69,0 +69,0 @@ }

{
"name": "@types/multer",
"version": "0.0.32",
"version": "0.0.33",
"description": "TypeScript definitions for multer",

@@ -16,4 +16,5 @@ "license": "MIT",

},
"typings": "index.d.ts",
"typesPublisherContentHash": "9ce1c5bfb386ca9e83bd1b1a0411375861b935ea18931e3b8dddd9061ab1b108"
"peerDependencies": {},
"typesPublisherContentHash": "66bb0d7f4ae45f856645b3e208b601859802d2e2a5f9c8200e56c8918211e3ef",
"typeScriptVersion": "2.0"
}

@@ -8,12 +8,10 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/multer
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/multer
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: express
* Global values: multer
* Last updated: Mon, 30 Jan 2017 18:37:17 GMT
* Dependencies: express
* Global values: none
# Credits
These definitions were written by jt000 <https://github.com/jt000>, vilicvane <https://vilic.github.io/>, David Broder-Rodgers <https://github.com/DavidBR-SW>.
{
"authors": "jt000 <https://github.com/jt000>, vilicvane <https://vilic.github.io/>, David Broder-Rodgers <https://github.com/DavidBR-SW>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [],
"moduleDependencies": [
"express"
],
"libraryMajorVersion": "0",
"libraryMinorVersion": "0",
"name": "multer",
"libraryName": "multer",
"typingsPackageName": "multer",
"projectName": "https://github.com/expressjs/multer",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ProperModule",
"globals": [
"multer"
],
"declaredModules": [
"multer"
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "9ce1c5bfb386ca9e83bd1b1a0411375861b935ea18931e3b8dddd9061ab1b108"
"data": {
"authors": "jt000 <https://github.com/jt000>, vilicvane <https://vilic.github.io/>, David Broder-Rodgers <https://github.com/DavidBR-SW>",
"dependencies": {
"express": "*"
},
"pathMappings": {},
"libraryMajorVersion": 0,
"libraryMinorVersion": 0,
"typeScriptVersion": "2.0",
"libraryName": "multer",
"typingsPackageName": "multer",
"projectName": "https://github.com/expressjs/multer",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"globals": [],
"declaredModules": [
"multer/."
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "66bb0d7f4ae45f856645b3e208b601859802d2e2a5f9c8200e56c8918211e3ef"
},
"isLatest": true
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc