@types/debug
Advanced tools
Comparing version 0.0.31 to 4.1.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for debug | ||
// Type definitions for debug 4.1 | ||
// Project: https://github.com/visionmedia/debug | ||
@@ -7,5 +7,6 @@ // Definitions by: Seon-Wook Park <https://github.com/swook> | ||
// Brasten Sager <https://github.com/brasten> | ||
// Nicolas Penin <https://github.com/npenin> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
declare var debug: debug.IDebug; | ||
declare var debug: debug.Debug & {debug: debug.Debug, default: debug.Debug}; | ||
@@ -16,27 +17,31 @@ export = debug; | ||
declare namespace debug { | ||
export interface IDebug { | ||
(namespace: string): debug.IDebugger, | ||
coerce: (val: any) => any, | ||
disable: () => void, | ||
enable: (namespaces: string) => void, | ||
enabled: (namespaces: string) => boolean, | ||
interface Debug { | ||
(namespace: string): Debugger; | ||
coerce: (val: any) => any; | ||
disable: () => void; | ||
enable: (namespaces: string) => void; | ||
enabled: (namespaces: string) => boolean; | ||
names: RegExp[], | ||
skips: RegExp[], | ||
names: RegExp[]; | ||
skips: RegExp[]; | ||
formatters: IFormatters | ||
formatters: Formatters; | ||
} | ||
export interface IFormatters { | ||
[formatter: string]: Function | ||
type IDebug = Debug; | ||
interface Formatters { | ||
[formatter: string]: (v: any) => string; | ||
} | ||
export interface IDebugger { | ||
type IDebugger = Debugger; | ||
interface Debugger { | ||
(formatter: any, ...args: any[]): void; | ||
enabled: boolean; | ||
log: Function; | ||
log: (v: any) => string; | ||
namespace: string; | ||
extend: (namespace: string, delimiter?: string) => debug.IDebugger; | ||
extend: (namespace: string, delimiter?: string) => Debugger; | ||
} | ||
} |
{ | ||
"name": "@types/debug", | ||
"version": "0.0.31", | ||
"version": "4.1.0", | ||
"description": "TypeScript definitions for debug", | ||
@@ -26,5 +26,11 @@ "license": "MIT", | ||
"githubUsername": "brasten" | ||
}, | ||
{ | ||
"name": "Nicolas Penin", | ||
"url": "https://github.com/npenin", | ||
"githubUsername": "npenin" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -36,4 +42,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b8c338a3a9723343255b937e1ffe67b076c6180cd50506dd43195ff710e8ca50", | ||
"typesPublisherContentHash": "827b6131e6c27b0829f2771812c0bcc0760b33ad7efe7b65b3c07f2e6cdd8855", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for debug (https://github.com/visionmedia/debug). | ||
This package contains type definitions for debug ( https://github.com/visionmedia/debug ). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Thu, 04 Oct 2018 17:46:11 GMT | ||
* Last updated: Thu, 07 Feb 2019 19:14:14 GMT | ||
* Dependencies: none | ||
@@ -18,2 +18,2 @@ * Global values: debug | ||
# 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>. | ||
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>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4366
35
1