@types/debug
TypeScript definitions for debug
Last updated 6 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ gnpm install @types/debug 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/debug

Summary

This package contains type definitions for debug (https://github.com/visionmedia/debug).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/debug.

index.d.ts

// Type definitions for debug 4.1
// Project: https://github.com/visionmedia/debug
// Definitions 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>
//                 Caleb Gregory <https://github.com/calebgregory>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: RegExp[];
        skips: RegExp[];

        formatters: Formatters;
    }

    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: Sat, 24 Jul 2021 08:01:14 GMT
  • Dependencies: @types/ms
  • Global values: debug

Credits

These definitions were written by Seon-Wook Park, Gal Talmor, John McLaughlin, Brasten Sager, Nicolas Penin, Kristian Brünn, and Caleb Gregory.

Current Tags

  • 4.1.7                                ...           latest (3 years ago)
  • 4.1.5                                ...           ts2.0 (5 years ago)
  • 4.1.5                                ...           ts2.1 (5 years ago)
  • 4.1.5                                ...           ts2.2 (5 years ago)
  • 4.1.5                                ...           ts2.3 (5 years ago)
  • 4.1.5                                ...           ts2.4 (5 years ago)
  • 4.1.5                                ...           ts2.5 (5 years ago)
  • 4.1.5                                ...           ts2.6 (5 years ago)
  • 4.1.5                                ...           ts2.7 (5 years ago)
  • 4.1.5                                ...           ts2.8 (5 years ago)
  • 4.1.5                                ...           ts2.9 (5 years ago)
  • 4.1.5                                ...           ts3.0 (5 years ago)
  • 4.1.5                                ...           ts3.1 (5 years ago)
  • 4.1.5                                ...           ts3.2 (5 years ago)
  • 4.1.5                                ...           ts3.3 (5 years ago)
  • 4.1.5                                ...           ts3.4 (5 years ago)
  • 4.1.5                                ...           ts3.5 (5 years ago)
  • 4.1.7                                ...           ts3.6 (3 years ago)
  • 4.1.7                                ...           ts3.7 (3 years ago)
  • 4.1.7                                ...           ts3.8 (3 years ago)
  • 4.1.7                                ...           ts3.9 (3 years ago)
  • 4.1.7                                ...           ts4.0 (3 years ago)
  • 4.1.7                                ...           ts4.1 (3 years ago)
  • 4.1.7                                ...           ts4.2 (3 years ago)
  • 4.1.7                                ...           ts4.3 (3 years ago)
  • 4.1.7                                ...           ts4.4 (3 years ago)
  • 4.1.7                                ...           ts4.5 (3 years ago)
  • 4.1.7                                ...           ts4.6 (3 years ago)
  • 4.1.7                                ...           ts4.7 (3 years ago)
  • 4.1.7                                ...           ts4.8 (3 years ago)
  • 4.1.7                                ...           ts4.9 (3 years ago)
  • 4.1.7                                ...           ts5.0 (3 years ago)
  • 4.1.7                                ...           ts5.1 (3 years ago)

21 Versions

  • 4.1.7                                ...           3 years ago
  • 4.1.6                                ...           3 years ago
  • 4.1.5                                ...           5 years ago
  • 4.1.4                                ...           6 years ago
  • 4.1.3                                ...           6 years ago
  • 4.1.2                                ...           6 years ago
  • 4.1.1                                ...           6 years ago
  • 4.1.0                                ...           6 years ago
  • 0.0.31                                ...           6 years ago
  • 0.0.30                                ...           7 years ago
  • 0.0.29                                ...           8 years ago
  • 0.0.28                                ...           8 years ago
  • 0.0.27-alpha                                ...           8 years ago
  • 0.0.26-alpha                                ...           8 years ago
  • 0.0.25-alpha                                ...           8 years ago
  • 0.0.24-alpha                                ...           8 years ago
  • 0.0.23-alpha                                ...           8 years ago
  • 0.0.22-alpha                                ...           9 years ago
  • 0.0.21-alpha                                ...           9 years ago
  • 0.0.16-alpha                                ...           9 years ago
  • 0.0.15-alpha                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |