# @types/promisify-supertest

> TypeScript definitions for promisify-supertest

Latest version **1.0.39** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/promisify-supertest
pnpm add @types/promisify-supertest
yarn add @types/promisify-supertest
bun add @types/promisify-supertest
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.39 |
| Published | 2025-10-24 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/promisify-supertest
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promisify-supertest
- npm.io page: https://npm.io/package/@types/promisify-supertest

## Dependencies (2)

- [@types/express](https://npm.io/package/@types/express.md) *
- [@types/superagent](https://npm.io/package/@types/superagent.md) *

## Recent versions

- 1.0.39 (latest) — 2025-10-24
- 1.0.38 (ts5.0) — 2023-11-07
- 1.0.35 (ts3.1) — 2019-07-03
- 1.0.34 (ts2.2) — 2017-08-21
- 1.0.31 (ts2.1) — 2016-09-19
- 1.0.37 — 2023-10-18
- 1.0.36 — 2023-09-24
- 1.0.33 — 2017-07-12
- 1.0.32 — 2017-06-15
- 1.0.30 — 2016-08-25
- 1.0.29 — 2016-08-19
- 1.0.28 — 2016-08-02
- 1.0.27 — 2016-07-14
- 1.0.26-alpha — 2016-07-08
- 1.0.25-alpha — 2016-07-04
- … 7 more at https://npm.io/package/@types/promisify-supertest/versions

## README

# Installation
> `npm install --save @types/promisify-supertest`

# Summary
This package contains type definitions for promisify-supertest (https://www.npmjs.com/package/promisify-supertest).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promisify-supertest.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promisify-supertest/index.d.ts)
````ts
// Mostly copy-pasted from supertest.d.ts

import express = require("express");
import superagent = require("superagent");

type CallbackHandler = (err: any, res: supertest.Response) => void;

declare function supertest(app: express.Express): supertest.SuperTest;

declare namespace supertest {
    function agent(app?: any): supertest.SuperTest;

    interface SuperTest extends superagent.SuperAgent<Test> {
    }

    interface Test extends superagent.SuperAgentRequest {
        url: string;
        serverAddress(app: any, path: string): string;
        expect(status: number, callback?: CallbackHandler): this;
        expect(status: number, body: string, callback?: CallbackHandler): this;
        expect(body: string, callback?: CallbackHandler): this;
        expect(body: RegExp, callback?: CallbackHandler): this;
        expect(body: Object, callback?: CallbackHandler): this;
        expect(field: string, val: string, callback?: CallbackHandler): this;
        expect(field: string, val: RegExp, callback?: CallbackHandler): this;
        expect(checker: (res: Response) => any): this;
        end(callback?: CallbackHandler): this & Promise<Response>;
    }

    interface Response extends superagent.Response {
    }
}

export = supertest;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/superagent](https://npmjs.com/package/@types/superagent)

# Credits
These definitions were written by [Leo Liang](https://github.com/aleung).

---
_Source: https://npm.io/package/@types/promisify-supertest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
