-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.d.ts
More file actions
38 lines (33 loc) · 1.25 KB
/
index.d.ts
File metadata and controls
38 lines (33 loc) · 1.25 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
declare module "react-native-simple-logger" {
export interface logger {
/**
* To log any data in the console
* @param header - The header to be shown as heading of the output.
* @param text - The output to be shown.
* @param expandJson - Whether to expand the JSON object or not.
*/
log(header?: string, text?: any, expandJson?: boolean): void;
/**
* To log any data in the console
* @param header - The header to be shown as heading of the output.
* @param text - The output to be shown.
* @param noJsonExpand - Whether to expand the JSON object or not.
*/
data(header?: string, text?: any, noJsonExpand?: boolean): void;
/**
* To log any data in the console
* @param header - The header to be shown as heading of the error output.
* @param err - The error to be shown.
* @param expandJson - Whether to expand the JSON object or not.
*/
error(header?: string, err?: any, expandJson?: boolean): void;
/**
* To log any data in the console
* @param header - The header to be shown as heading of the error output.
* @param err - The error to be shown.
*/
apiError(header?: string, err?: any): void;
}
const logger: logger;
export default logger;
}