summaryrefslogtreecommitdiff
path: root/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-12-29 07:54:55 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-12-29 07:54:55 +0800
commit73ced5e156cb7b8588c7e24fcee77e7f3e4061c5 (patch)
tree28d79e72e7bfecaec1b72a737849b2319ebbd765 /node_modules/postcss-selector-parser/postcss-selector-parser.d.ts
parent5f4101110c41a3e0fdcbdd30e5789bce57a2fe2a (diff)
package update
Diffstat (limited to 'node_modules/postcss-selector-parser/postcss-selector-parser.d.ts')
-rw-r--r--node_modules/postcss-selector-parser/postcss-selector-parser.d.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts b/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts
index 1512322a..1d804269 100644
--- a/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts
+++ b/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts
@@ -166,7 +166,7 @@ declare namespace parser {
replaceWith(...nodes: Node[]): Node;
next(): Node;
prev(): Node;
- clone(opts?: {[override: string]:any}): Node;
+ clone(opts?: {[override: string]:any}): this;
/**
* Return whether this node includes the character at the position of the given line and column.
* Returns undefined if the nodes lack sufficient source metadata to determine the position.
@@ -211,8 +211,8 @@ declare namespace parser {
Child extends Node = Node
> extends Base<Value> {
nodes: Array<Child>;
- append(selector: Selector): this;
- prepend(selector: Selector): this;
+ append(selector: Child): this;
+ prepend(selector: Child): this;
at(index: number): Child;
/**
* Return the most specific node at the line and column number given.
@@ -233,8 +233,8 @@ declare namespace parser {
readonly last: Child;
readonly length: number;
removeChild(child: Child): this;
- removeAll(): Container;
- empty(): Container;
+ removeAll(): this;
+ empty(): this;
insertAfter(oldNode: Child, newNode: Child): this;
insertBefore(oldNode: Child, newNode: Child): this;
each(callback: (node: Child) => boolean | void): boolean | undefined;
@@ -500,18 +500,18 @@ declare namespace parser {
}
function pseudo(opts: ContainerOptions): Pseudo;
/**
- * Checks wether the node is the Psuedo subtype of node.
+ * Checks whether the node is the Pseudo subtype of node.
*/
function isPseudo(node: any): node is Pseudo;
/**
- * Checks wether the node is, specifically, a pseudo element instead of
+ * Checks whether the node is, specifically, a pseudo element instead of
* pseudo class.
*/
function isPseudoElement(node: any): node is Pseudo;
/**
- * Checks wether the node is, specifically, a pseudo class instead of
+ * Checks whether the node is, specifically, a pseudo class instead of
* pseudo element.
*/
function isPseudoClass(node: any): node is Pseudo;