Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 28, 2024 via pnpm

@types/express 4.17.21

TypeScript definitions for express
Package summary
Share
0
issues
1
license
12
MIT
Package created
17 May 2016
Version published
7 Nov 2023
Maintainers
1
Total deps
12
Direct deps
4
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
12 Packages, Including:
@types/body-parser@1.19.5
@types/connect@3.4.38
@types/express-serve-static-core@4.19.0
@types/express@4.17.21
@types/http-errors@2.0.4
@types/mime@1.3.5
@types/node@20.12.7
@types/qs@6.9.15
@types/range-parser@1.2.7
@types/send@0.17.4
@types/serve-static@1.15.7
undici-types@5.26.5
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of @types/express 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@types/body-parser1.19.52.84 kBMIT
prod
@types/express-serve-static-core4.19.044.96 kBMIT
prod
@types/qs6.9.157.17 kBMIT
prod
@types/serve-static1.15.77.61 kBMIT
prod

Visualizations

Frequently Asked Questions

What does @types/express do?

The @types/express is an NPM package providing TypeScript type definitions specifically for the Express.js framework. In simpler terms, it's support for Express.js when working with TypeScript. It offers TypeScript developers rich development-time feedback which enhances code accuracy by providing static type checking and autocompletion.

How do you use @types/express?

To use the @types/express package in your project, you first need to install it using the Node Package Manager (NPM). The following is a simple example of how to use the @types/express package in your application.

Install the package:

npm install --save @types/express

After installation, whenever you import from the Express module, the TypeScript compiler will use the type definitions from the @types/express package.

import express, { Request, Response } from 'express';
const app = express();

app.get('/', (req: Request, res: Response) => {
    res.send('Hello World!');
});

In the above code example, 'Request' and 'Response' are TypeScript type definitions provided by the @types/express package.

Where are the @types/express docs?

The @types/express package is part of the DefinitelyTyped project, thus the official documentation is hosted on their Github repository. You can access the documentation from this URL: Definitely Typed. For a more specific location, all type definition files including the Express ones are located in the types directory. However, as a TypeScript type definition package, the @types/express does not provide extensive documentation like software libraries normally do. You'd use it more as a helper to other main libraries or frameworks (Express.js, in this case) rather than a standalone library. Hence, understanding and knowledge of Express.js itself is essential.