@@ -2,12 +2,6 @@ import Container, { ContainerProps } from './container.js'
22
33declare namespace AtRule {
44 export interface AtRuleRaws extends Record < string , unknown > {
5- /**
6- * The space symbols before the node. It also stores `*`
7- * and `_` symbols before the declaration (IE hack).
8- */
9- before ?: string
10-
115 /**
126 * The space symbols after the last child of the node to the end of the node.
137 */
@@ -19,29 +13,35 @@ declare namespace AtRule {
1913 afterName ?: string
2014
2115 /**
22- * The symbols between the last parameter and `{` for rules.
16+ * The space symbols before the node. It also stores `*`
17+ * and `_` symbols before the declaration (IE hack).
2318 */
24- between ?: string
19+ before ?: string
2520
2621 /**
27- * Contains `true` if the last child has an (optional) semicolon .
22+ * The symbols between the last parameter and `{` for rules .
2823 */
29- semicolon ?: boolean
24+ between ?: string
3025
3126 /**
3227 * The rule’s selector with comments.
3328 */
3429 params ?: {
35- value : string
3630 raw : string
31+ value : string
3732 }
33+
34+ /**
35+ * Contains `true` if the last child has an (optional) semicolon.
36+ */
37+ semicolon ?: boolean
3838 }
3939
4040 export interface AtRuleProps extends ContainerProps {
4141 /** Name of the at-rule. */
4242 name : string
4343 /** Parameters following the name of the at-rule. */
44- params ?: string | number
44+ params ?: number | string
4545 /** Information used to generate byte-to-byte equal node string as it was in the origin input. */
4646 raws ?: AtRuleRaws
4747 }
@@ -76,10 +76,6 @@ declare namespace AtRule {
7676 * ```
7777 */
7878declare class AtRule_ extends Container {
79- type : 'atrule'
80- parent : Container | undefined
81- raws : AtRule . AtRuleRaws
82-
8379 /**
8480 * The at-rule’s name immediately follows the `@`.
8581 *
@@ -90,7 +86,6 @@ declare class AtRule_ extends Container {
9086 * ```
9187 */
9288 name : string
93-
9489 /**
9590 * The at-rule’s parameters, the values that follow the at-rule’s name
9691 * but precede any `{}` block.
@@ -102,12 +97,17 @@ declare class AtRule_ extends Container {
10297 * ```
10398 */
10499 params : string
100+ parent : Container | undefined
101+
102+ raws : AtRule . AtRuleRaws
103+
104+ type : 'atrule'
105105
106106 constructor ( defaults ?: AtRule . AtRuleProps )
107- assign ( overrides : object | AtRule . AtRuleProps ) : this
107+ assign ( overrides : AtRule . AtRuleProps | object ) : this
108108 clone ( overrides ?: Partial < AtRule . AtRuleProps > ) : this
109- cloneBefore ( overrides ?: Partial < AtRule . AtRuleProps > ) : this
110109 cloneAfter ( overrides ?: Partial < AtRule . AtRuleProps > ) : this
110+ cloneBefore ( overrides ?: Partial < AtRule . AtRuleProps > ) : this
111111}
112112
113113declare class AtRule extends AtRule_ { }
0 commit comments