summaryrefslogtreecommitdiff
path: root/node_modules/postcss/lib/at-rule.d.ts
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
commitefbc2ffe6a1ee5ec38a4396305561d6515d0943e (patch)
tree2b4c94f18f2c792dfda813050755d5c0273fae22 /node_modules/postcss/lib/at-rule.d.ts
parent43acceb75957c880a5ba5a31aae221394a36d5f6 (diff)
node fixes, updates
Diffstat (limited to 'node_modules/postcss/lib/at-rule.d.ts')
-rw-r--r--node_modules/postcss/lib/at-rule.d.ts47
1 files changed, 25 insertions, 22 deletions
diff --git a/node_modules/postcss/lib/at-rule.d.ts b/node_modules/postcss/lib/at-rule.d.ts
index 5bdee38b..b2a0e0f4 100644
--- a/node_modules/postcss/lib/at-rule.d.ts
+++ b/node_modules/postcss/lib/at-rule.d.ts
@@ -80,16 +80,6 @@ declare namespace AtRule {
*/
declare class AtRule_ extends Container {
/**
- * The at-rule’s name immediately follows the `@`.
- *
- * ```js
- * const root = postcss.parse('@media print {}')
- * const media = root.first
- * media.name //=> 'media'
- * ```
- */
- name: string
- /**
* An array containing the layer’s children.
*
* ```js
@@ -108,6 +98,29 @@ declare class AtRule_ extends Container {
* ```
*/
nodes: Container['nodes']
+ parent: ContainerWithChildren | undefined
+
+ raws: AtRule.AtRuleRaws
+ type: 'atrule'
+ constructor(defaults?: AtRule.AtRuleProps)
+ assign(overrides: AtRule.AtRuleProps | object): this
+
+ clone(overrides?: Partial<AtRule.AtRuleProps>): this
+
+ cloneAfter(overrides?: Partial<AtRule.AtRuleProps>): this
+
+ cloneBefore(overrides?: Partial<AtRule.AtRuleProps>): this
+ /**
+ * The at-rule’s name immediately follows the `@`.
+ *
+ * ```js
+ * const root = postcss.parse('@media print {}')
+ * const media = root.first
+ * media.name //=> 'media'
+ * ```
+ */
+ get name(): string
+ set name(value: string)
/**
* The at-rule’s parameters, the values that follow the at-rule’s name
* but precede any `{}` block.
@@ -118,18 +131,8 @@ declare class AtRule_ extends Container {
* media.params //=> 'print, screen'
* ```
*/
- params: string
- parent: ContainerWithChildren | undefined
-
- raws: AtRule.AtRuleRaws
-
- type: 'atrule'
-
- constructor(defaults?: AtRule.AtRuleProps)
- assign(overrides: AtRule.AtRuleProps | object): this
- clone(overrides?: Partial<AtRule.AtRuleProps>): AtRule
- cloneAfter(overrides?: Partial<AtRule.AtRuleProps>): AtRule
- cloneBefore(overrides?: Partial<AtRule.AtRuleProps>): AtRule
+ get params(): string
+ set params(value: string)
}
declare class AtRule extends AtRule_ {}