-
Notifications
You must be signed in to change notification settings - Fork 968
Expand file tree
/
Copy pathbrowser.d.ts
More file actions
49 lines (44 loc) · 1.03 KB
/
browser.d.ts
File metadata and controls
49 lines (44 loc) · 1.03 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
46
47
48
49
export=browser
declare namespace browser
{
/**
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
* and the Firebug extension (any Firefox version) are known
* to support "%c" CSS customizations.
*
* TODO: add a `localStorage` variable to explicitly enable/disable colors
*/
function useColors(): boolean;
/**
* Colorize log arguments if enabled.
*
* @api public
*/
function formatArgs(args: string[]): void;
/**
* Save `namespaces`.
*
* @param {String} namespaces
* @api private
*/
function save(namespaces: string): void;
/**
* Load `namespaces`.
*
* @return {String} returns the previously persisted debug modes
* @api private
*/
function load(): string;
/**
* Localstorage attempts to return the localstorage.
*
* This is necessary because safari throws
* when a user disables cookies/localstorage
* and you attempt to access it.
*
* @return {LocalStorage}
* @api private
*/
function localstorage(): Storage;
const formatters: { j: (str:string) => string };
}