feat: refactoring project
This commit is contained in:
27
node_modules/postcss/lib/node.d.ts
generated
vendored
27
node_modules/postcss/lib/node.d.ts
generated
vendored
@@ -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'
|
||||
@@ -234,6 +234,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.
|
||||
*
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user