forked from postcss/postcss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrule.d.ts
36 lines (36 loc) · 1.18 KB
/
rule.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import Container from './container';
import postcss from './postcss';
export default class Rule extends Container implements postcss.Rule {
/**
* Returns a string representing the node's type. Possible values are
* root, atrule, rule, decl or comment.
*/
type: string;
/**
* Contains information to generate byte-to-byte equal node string as it
* was in origin input.
*/
raws: postcss.RuleRaws;
/**
* The rule's full selector. If there are multiple comma-separated selectors,
* the entire group will be included.
*/
selector: string;
/**
* Represents a CSS rule: a selector followed by a declaration block.
*/
constructor(defaults?: postcss.RuleNewProps);
/**
* @param overrides New properties to override in the clone.
* @returns A clone of this node. The node and its (cloned) children will
* have a clean parent and code style properties.
*/
clone(overrides?: Object): Rule;
toJSON(): postcss.JsonRule;
/**
* @returns An array containing the rule's individual selectors.
* Groups of selectors are split at commas.
*/
selectors: string[];
_selector: string;
}