UNPKG

701 BTypeScriptView Raw
1import * as postcss from 'postcss';
2export declare type DiagnosticType = 'error' | 'warning';
3export interface DiagnosticOptions {
4 word?: string;
5}
6export interface Diagnostic {
7 type: DiagnosticType;
8 node: postcss.Node;
9 message: string;
10 options: DiagnosticOptions;
11}
12export declare class Diagnostics {
13 reports: Diagnostic[];
14 constructor(reports?: Diagnostic[]);
15 add(type: DiagnosticType, node: postcss.Node, message: string, options?: DiagnosticOptions): void;
16 error(node: postcss.Node, message: string, options?: DiagnosticOptions): void;
17 warn(node: postcss.Node, message: string, options?: DiagnosticOptions): void;
18}
19//# sourceMappingURL=diagnostics.d.ts.map
\No newline at end of file