-
Notifications
You must be signed in to change notification settings - Fork 969
Expand file tree
/
Copy pathnode.d.ts
More file actions
45 lines (44 loc) · 1.05 KB
/
node.d.ts
File metadata and controls
45 lines (44 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* Module dependencies.
*/
import TTY=require("tty");
import Util=require("util");
declare const tty: typeof TTY;
declare const util: typeof Util;
/**
* Is stdout a TTY? Colored output is enabled when `true`.
*/
declare function useColors(): boolean;
/**
* Adds ANSI color escape codes if enabled.
*
* @api public
*/
declare function formatArgs(args: any): void;
declare function getDate(): string;
/**
* Invokes `util.format()` with the specified arguments and writes to stderr.
*/
declare function log(...args: any[]): boolean;
/**
* Save `namespaces`.
*
* @param {String} namespaces
* @api private
*/
declare function save(namespaces: string): void;
/**
* Load `namespaces`.
*
* @return {String} returns the previously persisted debug modes
* @api private
*/
declare function load(): string;
/**
* Init logic for `debug` instances.
*
* Create a new `inspectOpts` object in case `useColors` is set
* differently for a particular `debug` instance.
*/
declare function init(debug: any): void;
declare const formatters: {o:()=>string,O:()=>string};