UNPKG

527 BTypeScriptView Raw
1interface Position {
2 start: {
3 line: number;
4 column: number;
5 };
6 end: {
7 line: number;
8 column: number;
9 };
10 source?: string;
11}
12
13export interface Declaration {
14 type: 'declaration';
15 property: string;
16 value: string;
17 position: Position;
18}
19
20export interface Comment {
21 type: 'comment';
22 comment: string;
23 position: Position;
24}
25
26interface Options {
27 source?: string;
28 silent?: boolean;
29}
30
31export default function InlineStyleParser(
32 style: string,
33 options?: Options
34): (Declaration | Comment)[];