@types/depd
TypeScript definitions for depd
Last updated 4 months ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ npm install @types/depd 
SYNC missed versions from official npm registry.

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

/// <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

Credits

These definitions were written by Zhiyuan Wang, and BendingBender.

Current Tags

  • 1.1.38                                ...           latest (4 months ago)
  • 1.1.31                                ...           ts2.0 (9 years ago)
  • 1.1.31                                ...           ts2.1 (9 years ago)
  • 1.1.32                                ...           ts2.2 (9 years ago)
  • 1.1.32                                ...           ts2.3 (9 years ago)
  • 1.1.32                                ...           ts2.4 (9 years ago)
  • 1.1.32                                ...           ts2.5 (9 years ago)
  • 1.1.32                                ...           ts2.6 (9 years ago)
  • 1.1.32                                ...           ts2.7 (9 years ago)
  • 1.1.32                                ...           ts2.8 (9 years ago)
  • 1.1.32                                ...           ts2.9 (9 years ago)
  • 1.1.32                                ...           ts3.0 (9 years ago)
  • 1.1.32                                ...           ts3.1 (9 years ago)
  • 1.1.32                                ...           ts3.2 (9 years ago)
  • 1.1.32                                ...           ts3.3 (9 years ago)
  • 1.1.32                                ...           ts3.4 (9 years ago)
  • 1.1.32                                ...           ts3.5 (9 years ago)
  • 1.1.32                                ...           ts3.6 (9 years ago)
  • 1.1.32                                ...           ts3.7 (9 years ago)
  • 1.1.32                                ...           ts3.8 (9 years ago)
  • 1.1.32                                ...           ts3.9 (9 years ago)
  • 1.1.32                                ...           ts4.0 (9 years ago)
  • 1.1.32                                ...           ts4.1 (9 years ago)
  • 1.1.32                                ...           ts4.2 (9 years ago)
  • 1.1.32                                ...           ts4.3 (9 years ago)
  • 1.1.32                                ...           ts4.4 (9 years ago)
  • 1.1.36                                ...           ts4.5 (3 years ago)
  • 1.1.36                                ...           ts4.6 (3 years ago)
  • 1.1.36                                ...           ts4.7 (3 years ago)
  • 1.1.37                                ...           ts4.8 (2 years ago)
  • 1.1.37                                ...           ts4.9 (2 years ago)
  • 1.1.37                                ...           ts5.0 (2 years ago)
  • 1.1.37                                ...           ts5.1 (2 years ago)
  • 1.1.37                                ...           ts5.2 (2 years ago)
  • 1.1.37                                ...           ts5.3 (2 years ago)
  • 1.1.37                                ...           ts5.4 (2 years ago)
  • 1.1.37                                ...           ts5.5 (2 years ago)
  • 1.1.38                                ...           ts5.6 (4 months ago)
  • 1.1.38                                ...           ts5.7 (4 months ago)
  • 1.1.38                                ...           ts5.8 (4 months ago)
  • 1.1.38                                ...           ts5.9 (4 months ago)
  • 1.1.38                                ...           ts6.0 (4 months ago)
  • 1.1.38                                ...           ts7.0 (4 months ago)
  • 1.1.38                                ...           ts7.1 (4 months ago)

19 Versions

  • 1.1.38                                ...           4 months ago
  • 1.1.37                                ...           2 years ago
  • 1.1.36                                ...           3 years ago
  • 1.1.35                                ...           3 years ago
  • 1.1.34                                ...           3 years ago
  • 1.1.33                                ...           3 years ago
  • 1.1.32                                ...           9 years ago
  • 1.1.31                                ...           9 years ago
  • 1.1.30                                ...           10 years ago
  • 1.1.29                                ...           10 years ago
  • 1.1.28-alpha                                ...           10 years ago
  • 1.1.27-alpha                                ...           10 years ago
  • 1.1.26-alpha                                ...           10 years ago
  • 1.1.25-alpha                                ...           10 years ago
  • 1.1.24-alpha                                ...           10 years ago
  • 1.1.23-alpha                                ...           11 years ago
  • 1.1.22-alpha                                ...           11 years ago
  • 1.1.17-alpha                                ...           11 years ago
  • 1.1.16-alpha                                ...           11 years ago
Maintainers (1)
Downloads
Total 64
Today 0
This Week 0
This Month 46
Last Day 0
Last Week 34
Last Month 3
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE