New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/express-formidable

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/express-formidable

TypeScript definitions for express-formidable

1.2.3
ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
latest
Source
npm
Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/express-formidable

Summary

This package contains type definitions for express-formidable (https://github.com/noraesae/express-formidable).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-formidable.

index.d.ts

import * as express from "express";
import { EventNames, Fields, Files } from "formidable";

// Extend the express request object with attached formidable files and fields
declare global {
    namespace Express {
        interface Request {
            fields?: Fields;
            files?: Files;
        }
    }
}

interface ExpressFormidableOptions {
    encoding?: string;
    uploadDir?: string;
    keepExtensions?: boolean;
    type?: "multipart" | "urlencoded";
    maxFileSize?: number;
    maxFieldsSize?: number;
    maxFields?: number;
    hash?: boolean | "sha1" | "md5";
    multiples?: boolean;
}

interface ExpressFormidableEvents {
    event: EventNames;
    action: (
        req: express.Request,
        res: express.Response,
        next: express.NextFunction,
        ...formidableParameters: any[]
    ) => void;
}

declare function ExpressFormidable(
    options?: ExpressFormidableOptions,
    events?: ExpressFormidableEvents[],
): express.RequestHandler;

declare namespace ExpressFormidable {}

export = ExpressFormidable;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:36 GMT
  • Dependencies: @types/express, @types/formidable

Credits

These definitions were written by Torkild Dyvik Olsen, and Evan Shortiss.

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts