4.1.12 • Published 6 months ago

@types/debug v4.1.12

Weekly downloads
2,190,631
License
MIT
Repository
github
Last release
6 months ago

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.

micromark@withjoy/server-core-test@loopx/translate@prisma/debug@zhumi/bigbrain_media-client@duoke/vue-plugins@modern-js/plugin-garfish@dojimanetwork/debugrubbish.magong.io@apato/tupelo-wasm-sdkwebpc-plug@stefancfuchs/chat-message-protocolgamiphy-monitor@darrinholst/nightwatch-api@bitrelay/clientazdevautomation@bitrelay/discoveryvuln-func-validatormediasoup-rtcttmediasoup-ttmediasoupbyrtctt@splytech-io/koa-mongodb-crudsnyk-prevent@nestwealth/service-bus@emanuelmoraes-dev/www-expressmanbulloo-graphql-access-layercalc-of-priced-puppeteer-extrats-sinekts-pgql-on-rdbms@bolder/ui-config@fatalerrorcoded/mediasoup-clientsmart-api-booking-service@dxos/model-adapter@roip/super-routeazquery-apicraftprofitweb@lexagr-puppeteer-extra/puppeteer-extra@lexagr-puppeteer-extra/puppeteer-extra-plugin@lexagr/puppeteer-extra-plugin@aidenhadisi/dank-twitch-irc@roip/sensorhub@splytech-io/mongodb-dynamic-indexesjoesipqueuemetrics-connector-bullpr-keycloak-adminbigbrain_media-clientwebhint-formatter-real-json@vargaad95/pr-keycloak-admin1dbr-n-cvsip@unifiedts/enginenode-xrcnestore-msggrpc-mock-server@eagermkonpm/weixinxreact-native-jssip-modified@enchat/lib@infinitebrahmanuniverse/nolb-_types_ddonfungible-bundler-sdk@cascadeos/node-metrics-gatherer@integromat/debugrqrcmetric_metric@everything-registry/sub-chunk-947@digitalzz/lowcode-code-generatorviolat@tachibana-shin/vite-plugin-pages@ihcmikmai/file-scan@ikatec/graphile-worker@igpapi/core@igpapi/sticker@insertish/mediasoup-client@imbueplatform/cell@imbueplatform/dot-cell@imbueplatform/dot-http@imbueapp/cell@ianwremmel/debug@infurnia/sequelize@infuseai/keycloak-admin@heroku-cli/plugin-container-build@heroku-cli/plugin-local-build@hashprotocol/debug@hashableric/hyperlane-sdk@hitorisensei/per-env@hiveteams/collab-backend@imagineapps/nest-criteria@interledger/rafiki-core@jc-lab/ssdp-ts@ionjs/core@inward/boot@inward/context@masq-project/electron-chrome-extensions@mamba-le/utils@markuplint/rules@markuplint/selector@markuplint/types@markuplint/ml-core@liquality/debug@loopback/context
4.1.9

7 months ago

4.1.10

6 months ago

4.1.11

6 months ago

4.1.12

6 months ago

4.1.8

11 months ago

4.1.7

3 years ago

4.1.6

3 years ago

4.1.5

5 years ago

4.1.4

5 years ago

4.1.3

5 years ago

4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 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

8 years ago

0.0.21-alpha

8 years ago

0.0.16-alpha

8 years ago

0.0.15-alpha

8 years ago