-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathreworkcss.d.ts
More file actions
37 lines (29 loc) · 679 Bytes
/
reworkcss.d.ts
File metadata and controls
37 lines (29 loc) · 679 Bytes
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
/**
* @module "css"
*/ /** */
export interface Position {
start: { line: number; column: number };
end: { line: number; column: number };
}
export interface Node {
type: "rule" | "keyframes" | "declaration" | "import";
position: Position;
}
export interface Declaration extends Node {
property: string;
value: string;
}
export interface Rule extends Node {
selectors: string[];
declarations: Node[];
}
export interface Keyframes extends Rule {
name: string;
}
export interface StyleSheet {
rules: Node[];
}
export interface SyntaxTree {
stylesheet: StyleSheet;
}
export function parse(css: string, options: any): SyntaxTree;