chore: format

This commit is contained in:
Nathan Walker
2020-07-05 14:57:06 -07:00
parent 8f2900ad0b
commit da3c0b973d
379 changed files with 71587 additions and 54582 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;