forked from nkoehring/250kb-club
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
50 lines (47 loc) · 902 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
44
45
46
47
48
49
50
type PageRecord = {
title: string;
date: string;
updated: string;
weight: number;
extra: {
source: string;
ratio: number;
size: number;
};
}
type StringMap = {
[key: string]: string;
}
type Status = {
status: 'awaiting' | 'running' | 'complete' | 'failed';
url: string;
}
type Metric = {
scores: {
pageWeight: number;
requests: number;
domComplexity: number;
javascriptComplexity: number;
badJavascript: number;
jQuery: number;
cssComplexity: number;
badCSS: number;
fonts: number;
serverConfig: number;
globalScore: number;
};
metrics: {
requests: number;
bodySize: number;
contentLength: number;
htmlSize: number;
cssSize: number;
jsSize: number;
jsonSize: number;
imageSize: number;
videoSize: number;
webfontSize: number;
base64Size: number;
otherSize: number;
}
}