chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-06 14:25:11 -07:00
parent 94cf5c4706
commit 6336eac4b5
477 changed files with 59087 additions and 74961 deletions

View File

@@ -1,33 +1,33 @@
export interface Position {
start: { line: number; column: number };
end: { line: number; column: number };
start: { line: number; column: number };
end: { line: number; column: number };
}
export interface Node {
type: "rule" | "keyframes" | "declaration" | "import";
position: Position;
type: 'rule' | 'keyframes' | 'declaration' | 'import';
position: Position;
}
export interface Declaration extends Node {
property: string;
value: string;
property: string;
value: string;
}
export interface Rule extends Node {
selectors: string[];
declarations: Node[];
selectors: string[];
declarations: Node[];
}
export interface Keyframes extends Rule {
name: string;
name: string;
}
export interface StyleSheet {
rules: Node[];
rules: Node[];
}
export interface SyntaxTree {
stylesheet: StyleSheet;
stylesheet: StyleSheet;
}
export function parse(css: string, options: any): SyntaxTree;