UNPKG

1.16 kBTypeScriptView Raw
1export interface CSSProperty {
2 name: string;
3 value: string;
4 disabled: boolean;
5}
6export interface ShorthandEntry {
7 name: string;
8 value: string;
9}
10export interface CSSStyle {
11 cssProperties: CSSProperty[];
12 shorthandEntries: ShorthandEntry[];
13 cssText?: string;
14}
15export interface Value {
16 text: string;
17}
18export interface SelectorList {
19 selectors: Value[];
20 text: string;
21}
22export interface CSSRule {
23 selectorList: SelectorList;
24 origin: string;
25 style: CSSStyle;
26 styleSheetId?: string;
27}
28export interface RuleMatch {
29 rule: CSSRule;
30 matchingSelectors: number[];
31}
32export interface InheritedStyleEntry {
33 matchedCSSRules: RuleMatch[];
34 inlineStyle?: CSSStyle;
35}
36export interface CSSComputedStyleProperty {
37 name: string;
38 value: string;
39}
40export interface PlatformFontUsage {
41 familyName: string;
42 glyphCount: number;
43 isCustomFont: boolean;
44}
45export interface CSSStyleSheetHeader {
46 styleSheetId: string;
47 frameId: string;
48 sourceUrl: string;
49 origin: string;
50 title: string;
51 disabled: boolean;
52 isInLine: boolean;
53 startLine: number;
54 startColumn: number;
55}
56export interface PseudoElementMatches {
57 pseudoType: string;
58 matches: RuleMatch[];
59}