express/000755 001751 000166 0000000000 15020720275014220 5ustar00runner000000 000000 1502072027515020720275express/LICENSE000644 001751 000166 0000002165 15020720275015231 0ustar00runner000000 000000 1502072027515020720275 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE express/README.md000644 001751 000166 0000001502 15020720275015473 0ustar00runner000000 000000 1502072064215020720275# Installation > `npm install --save @types/express` # Summary This package contains type definitions for express (http://expressjs.com). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express. ### Additional Details * Last updated: Sat, 07 Jun 2025 02:15:25 GMT * Dependencies: [@types/body-parser](https://npmjs.com/package/@types/body-parser), [@types/express-serve-static-core](https://npmjs.com/package/@types/express-serve-static-core), [@types/serve-static](https://npmjs.com/package/@types/serve-static) # Credits These definitions were written by [Boris Yankov](https://github.com/borisyankov), [Puneet Arora](https://github.com/puneetar), [Dylan Frankland](https://github.com/dfrankland), and [Sebastian Beltran](https://github.com/bjohansebas). express/index.d.ts000644 001751 000166 0000010133 15020720275016117 0ustar00runner000000 000000 1502072027515020720275/* =================== USAGE =================== import express = require("express"); var app = express(); =============================================== */ /// /// import * as bodyParser from "body-parser"; import * as core from "express-serve-static-core"; import * as serveStatic from "serve-static"; /** * Creates an Express application. The express() function is a top-level function exported by the express module. */ declare function e(): core.Express; declare namespace e { /** * This is a built-in middleware function in Express. It parses incoming requests with JSON payloads and is based on body-parser. * @since 4.16.0 */ var json: typeof bodyParser.json; /** * This is a built-in middleware function in Express. It parses incoming requests with Buffer payloads and is based on body-parser. * @since 4.17.0 */ var raw: typeof bodyParser.raw; /** * This is a built-in middleware function in Express. It parses incoming requests with text payloads and is based on body-parser. * @since 4.17.0 */ var text: typeof bodyParser.text; /** * These are the exposed prototypes. */ var application: Application; var request: Request; var response: Response; /** * This is a built-in middleware function in Express. It serves static files and is based on serve-static. */ var static: serveStatic.RequestHandlerConstructor; /** * This is a built-in middleware function in Express. It parses incoming requests with urlencoded payloads and is based on body-parser. * @since 4.16.0 */ var urlencoded: typeof bodyParser.urlencoded; export function Router(options?: RouterOptions): core.Router; interface RouterOptions { /** * Enable case sensitivity. */ caseSensitive?: boolean | undefined; /** * Preserve the req.params values from the parent router. * If the parent and the child have conflicting param names, the child’s value take precedence. * * @default false * @since 4.5.0 */ mergeParams?: boolean | undefined; /** * Enable strict routing. */ strict?: boolean | undefined; } interface Application extends core.Application {} interface CookieOptions extends core.CookieOptions {} interface Errback extends core.Errback {} interface ErrorRequestHandler< P = core.ParamsDictionary, ResBody = any, ReqBody = any, ReqQuery = core.Query, Locals extends Record = Record, > extends core.ErrorRequestHandler {} interface Express extends core.Express {} interface Handler extends core.Handler {} interface IRoute extends core.IRoute {} interface IRouter extends core.IRouter {} interface IRouterHandler extends core.IRouterHandler {} interface IRouterMatcher extends core.IRouterMatcher {} interface MediaType extends core.MediaType {} interface NextFunction extends core.NextFunction {} interface Locals extends core.Locals {} interface Request< P = core.ParamsDictionary, ResBody = any, ReqBody = any, ReqQuery = core.Query, Locals extends Record = Record, > extends core.Request {} interface RequestHandler< P = core.ParamsDictionary, ResBody = any, ReqBody = any, ReqQuery = core.Query, Locals extends Record = Record, > extends core.RequestHandler {} interface RequestParamHandler extends core.RequestParamHandler {} interface Response< ResBody = any, Locals extends Record = Record, > extends core.Response {} interface Router extends core.Router {} interface Send extends core.Send {} } export = e; express/package.json000644 001751 000166 0000002603 15020720275016505 0ustar00runner000000 000000 1502072064215020720275{ "name": "@types/express", "version": "5.0.3", "description": "TypeScript definitions for express", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express", "license": "MIT", "contributors": [ { "name": "Boris Yankov", "githubUsername": "borisyankov", "url": "https://github.com/borisyankov" }, { "name": "Puneet Arora", "githubUsername": "puneetar", "url": "https://github.com/puneetar" }, { "name": "Dylan Frankland", "githubUsername": "dfrankland", "url": "https://github.com/dfrankland" }, { "name": "Sebastian Beltran", "githubUsername": "bjohansebas", "url": "https://github.com/bjohansebas" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/express" }, "scripts": {}, "dependencies": { "@types/body-parser": "*", "@types/express-serve-static-core": "^5.0.0", "@types/serve-static": "*" }, "peerDependencies": {}, "typesPublisherContentHash": "50a15d13b8596ea6054e9e404451e427c71c41ab505b7dc01a72b122e2ee16f6", "typeScriptVersion": "5.1" }