summaryrefslogtreecommitdiff
path: root/node_modules/postcss/lib/node.d.ts
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-10-13 10:37:19 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-10-13 10:37:19 +0800
commite29b244aeab08ea36fb385c7beb2ad0560217039 (patch)
treec66b744dc29573f1acc871862937a23f1b80e6bf /node_modules/postcss/lib/node.d.ts
parent62c2881629e6413a8fec6d3dd092e4568e2a81dc (diff)
bump: @babel/cli 7.25.6 → 7.25.7, @babel/core 7.25.2 → 7.25.8, @babel/preset-env 7.25.4 → 7.25.8, postcss 8.4.41 → 8.4.47, swup 4.7.0 → 4.8.1
Diffstat (limited to 'node_modules/postcss/lib/node.d.ts')
-rw-r--r--node_modules/postcss/lib/node.d.ts27
1 files changed, 16 insertions, 11 deletions
diff --git a/node_modules/postcss/lib/node.d.ts b/node_modules/postcss/lib/node.d.ts
index 8cc3cdbe..35976702 100644
--- a/node_modules/postcss/lib/node.d.ts
+++ b/node_modules/postcss/lib/node.d.ts
@@ -2,7 +2,7 @@ import AtRule = require('./at-rule.js')
import { AtRuleProps } from './at-rule.js'
import Comment, { CommentProps } from './comment.js'
-import Container from './container.js'
+import Container, { NewChild } from './container.js'
import CssSyntaxError from './css-syntax-error.js'
import Declaration, { DeclarationProps } from './declaration.js'
import Document from './document.js'
@@ -235,6 +235,14 @@ declare abstract class Node_ {
constructor(defaults?: object)
/**
+ * If this node isn't already dirty, marks it and its ancestors as such. This
+ * indicates to the LazyResult processor that the {@link Root} has been
+ * modified by the current plugin and may need to be processed again by other
+ * plugins.
+ */
+ protected markDirty(): void
+
+ /**
* Insert new node after current node to current node’s parent.
*
* Just alias for `node.parent.insertAfter(node, add)`.
@@ -246,7 +254,9 @@ declare abstract class Node_ {
* @param newNode New node.
* @return This node for methods chain.
*/
- after(newNode: Node | Node.ChildProps | Node[] | string | undefined): this
+ after(
+ newNode: Node | Node.ChildProps | readonly Node[] | string | undefined
+ ): this
/**
* It assigns properties to an existing node instance.
@@ -273,7 +283,9 @@ declare abstract class Node_ {
* @param newNode New node.
* @return This node for methods chain.
*/
- before(newNode: Node | Node.ChildProps | Node[] | string | undefined): this
+ before(
+ newNode: Node | Node.ChildProps | readonly Node[] | string | undefined
+ ): this
/**
* Clear the code style properties for the node and its children.
@@ -470,14 +482,7 @@ declare abstract class Node_ {
* @param nodes Mode(s) to replace current one.
* @return Current node to methods chain.
*/
- replaceWith(
- ...nodes: (
- | Node
- | Node[]
- | Node.ChildProps
- | Node.ChildProps[]
- )[]
- ): this
+ replaceWith(...nodes: NewChild[]): this
/**
* Finds the Root instance of the node’s tree.