# @types/depd

> TypeScript definitions for depd

Latest version **1.1.38** (published 2026-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/depd
pnpm add @types/depd
yarn add @types/depd
bun add @types/depd
```

## Health

**Score 70/100 (B)** — status: active.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.38 |
| Published | 2026-07-31 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.1.38 (latest) — 2026-07-31
- 1.1.37 (ts5.4) — 2024-10-23
- 1.1.36 (ts4.7) — 2023-11-20
- 1.1.32 (ts3.8) — 2017-09-07
- 1.1.31 (ts2.1) — 2017-08-21
- 1.1.35 — 2023-11-07
- 1.1.34 — 2023-10-18
- 1.1.33 — 2023-09-22
- 1.1.30 — 2016-09-19
- 1.1.29 — 2016-07-14
- 1.1.28-alpha — 2016-07-08
- 1.1.27-alpha — 2016-07-04
- 1.1.26-alpha — 2016-07-02
- 1.1.25-alpha — 2016-07-01
- 1.1.24-alpha — 2016-07-01
- … 4 more at https://npm.io/package/@types/depd/versions

## README

# Installation
> `npm install --save @types/depd`

# Summary
This package contains type definitions for depd (https://github.com/dougwilson/nodejs-depd).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/depd.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/depd/index.d.ts)
````ts
/// <reference types="node" />

export = depd;

declare function depd(namespace: string): depd.Deprecate;

declare namespace depd {
    interface Deprecate {
        (message: string): void;
        // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
        function<T extends Function>(fn: T, message?: string): T;
        property<T extends object>(obj: T, prop: keyof T, message: string): void;
    }

    interface DeprecationError extends Error {
        readonly name: "DeprecationError";
        namespace: string;
        stack: string;
    }
}

declare global {
    namespace NodeJS {
        interface Process {
            addListener(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
            emit(event: "deprecation", code: depd.DeprecationError): boolean;
            on(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
            once(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
            prependListener(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
            prependOnceListener(
                event: "deprecation",
                listener: (deprecationError: depd.DeprecationError) => void,
            ): this;
            listeners(event: "deprecation"): Array<(deprecationError: depd.DeprecationError) => void>;
        }
    }
}

````

### Additional Details
 * Last updated: Fri, 31 Jul 2026 23:48:11 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Zhiyuan Wang](https://github.com/danny8002), and [BendingBender](https://github.com/BendingBender).

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