• Version 4.1.7
  • Published
  • 7.22 kB
  • 1 dependency
  • MIT license


npm i @types/debug
yarn add @types/debug
pnpm add @types/debug


TypeScript definitions for debug



variable debug

var debug: debug.Debug & { debug: debug.Debug; default: debug.Debug };


    interface Debug

    interface Debug {}

      property coerce

      coerce: (val: any) => any;

        property disable

        disable: () => string;

          property enable

          enable: (namespaces: string) => void;

            property enabled

            enabled: (namespaces: string) => boolean;

              property formatArgs

              formatArgs: (this: Debugger, args: any[]) => void;

                property formatters

                formatters: Formatters;

                  property humanize

                  humanize: typeof import('ms');

                    property log

                    log: (...args: any[]) => any;

                      property names

                      names: RegExp[];

                        property selectColor

                        selectColor: (namespace: string) => string | number;

                          property skips

                          skips: RegExp[];

                            call signature

                            (namespace: string): Debugger;

                              interface Debugger

                              interface Debugger {}

                                property color

                                color: string;

                                  property destroy

                                  destroy: () => boolean;

                                    property diff

                                    diff: number;

                                      property enabled

                                      enabled: boolean;

                                        property extend

                                        extend: (namespace: string, delimiter?: string) => Debugger;

                                          property log

                                          log: (...args: any[]) => any;

                                            property namespace

                                            namespace: string;

                                              call signature

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

                                                interface Formatters

                                                interface Formatters {}

                                                  index signature

                                                  [formatter: string]: (v: any) => string;

                                                    Type Aliases

                                                    type IDebug

                                                    type IDebug = Debug;

                                                      type IDebugger

                                                      type IDebugger = Debugger;

                                                        Package Files (1)

                                                        Dependencies (1)

                                                        Dev Dependencies (0)

                                                        No dev dependencies.

                                                        Peer Dependencies (0)

                                                        No peer dependencies.


                                                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/debug.

                                                        • Markdown
                                                        • HTML
                                                          <a href="https://www.jsdocs.io/package/@types/debug"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>