-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
43 lines (42 loc) · 1021 Bytes
/
index.d.ts
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
declare module 'jsontohtml-render' {
export interface JsonToHtmlOptionType {
fontSize?: string;
font?: string;
space?: string;
space_from_left?: string;
links?: boolean;
colors?: {
background?: string;
keys?: string;
values?: {
number?: string;
string?: string;
boolean?: string;
function?: string;
undefined?: string;
null?: string;
other?: string;
curly_brace?: string;
square_brace?: string;
comma_colon_quotes?: string;
};
};
line_numbers?: {
show?: boolean;
color?: string;
space_from_left?: string;
};
retractors?: {
show?: boolean;
color?: string;
space_from_left?: string;
};
bracket_pair_lines?: {
show?: boolean;
color?: string;
space_from_left?: string;
type?: 'dotted' | 'dashed' | 'solid' | 'none';
};
}
export function jsontohtml(data: any, options?: JsonToHtmlOptionType): string;
}