# @types/debug

> TypeScript definitions for debug

Latest version **4.1.13** (published 2026-03-19) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 4.1.13 |
| Published | 2026-03-19 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 4.1.13 (latest) — 2026-03-19
- 4.1.12 (ts4.5) — 2023-11-09
- 4.1.8 (ts4.3) — 2023-05-22
- 4.1.7 (ts3.6) — 2021-07-24
- 4.1.5 (ts2.0) — 2019-08-08
- 4.1.11 — 2023-11-07
- 4.1.10 — 2023-10-18
- 4.1.9 — 2023-09-22
- 4.1.6 — 2021-07-01
- 4.1.4 — 2019-04-12
- 4.1.3 — 2019-03-28
- 4.1.2 — 2019-02-20
- 4.1.1 — 2019-02-14
- 4.1.0 — 2019-02-07
- 0.0.31 — 2018-10-04
- … 12 more at https://npm.io/package/@types/debug/versions

## README

# Installation
> `npm install --save @types/debug`

# Summary
This package contains type definitions for debug (https://github.com/debug-js/debug).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/debug.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/debug/index.d.ts)
````ts
declare var debug: debug.Debug & { debug: debug.Debug; default: debug.Debug };

export = debug;
export as namespace debug;

declare namespace debug {
    interface Debug {
        (namespace: string): Debugger;
        coerce: (val: any) => any;
        disable: () => string;
        enable: (namespaces: string) => void;
        enabled: (namespaces: string) => boolean;
        formatArgs: (this: Debugger, args: any[]) => void;
        log: (...args: any[]) => any;
        selectColor: (namespace: string) => string | number;
        humanize: typeof import("ms");

        names: string[];
        skips: string[];

        formatters: Formatters;

        inspectOpts?: {
            hideDate?: boolean | number | null;
            colors?: boolean | number | null;
            depth?: boolean | number | null;
            showHidden?: boolean | number | null;
        };
    }

    type IDebug = Debug;

    interface Formatters {
        [formatter: string]: (v: any) => string;
    }

    type IDebugger = Debugger;

    interface Debugger {
        (formatter: any, ...args: any[]): void;

        color: string;
        diff: number;
        enabled: boolean;
        log: (...args: any[]) => any;
        namespace: string;
        destroy: () => boolean;
        extend: (namespace: string, delimiter?: string) => Debugger;
    }
}

````

### Additional Details
 * Last updated: Thu, 19 Mar 2026 06:47:22 GMT
 * Dependencies: [@types/ms](https://npmjs.com/package/@types/ms)

# Credits
These definitions were written by [Seon-Wook Park](https://github.com/swook), [Gal Talmor](https://github.com/galtalmor), [John McLaughlin](https://github.com/zamb3zi), [Brasten Sager](https://github.com/brasten), [Nicolas Penin](https://github.com/npenin), [Kristian Brünn](https://github.com/kristianmitk), and [Caleb Gregory](https://github.com/calebgregory).

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