Version 1
[yaffs-website] / node_modules / uncss / node_modules / postcss / d.ts / warning.d.ts
1 import postcss from './postcss';
2 import Node from './node';
3 export default class Warning implements postcss.Warning {
4     /**
5      * Contains the warning message.
6      */
7     text: string;
8     /**
9      * Returns a string representing the node's type. Possible values are
10      * root, atrule, rule, decl or comment.
11      */
12     type: string;
13     /**
14      * Contains the name of the plugin that created this warning. When you
15      * call Node#warn(), it will fill this property automatically.
16      */
17     plugin: string;
18     /**
19      * The CSS node that caused the warning.
20      */
21     node: Node;
22     /**
23      * The line in the input file with this warning's source.
24      */
25     line: number;
26     /**
27      * Column in the input file with this warning's source.
28      */
29     column: number;
30     /**
31      * Represents a plugin warning. It can be created using Node#warn().
32      */
33     constructor(
34         /**
35          * Contains the warning message.
36          */
37         text: string, options?: postcss.WarningOptions);
38     /**
39      * @returns Error position, message.
40      */
41     toString(): string;
42 }