Skip to content

Commit 01ba4f3

Browse files
authored
types: fix type definitions (#284)
1 parent d83b2d6 commit 01ba4f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

postcss-selector-parser.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ declare namespace parser {
166166
replaceWith(...nodes: Node[]): Node;
167167
next(): Node;
168168
prev(): Node;
169-
clone(opts?: {[override: string]:any}): Node;
169+
clone(opts?: {[override: string]:any}): this;
170170
/**
171171
* Return whether this node includes the character at the position of the given line and column.
172172
* Returns undefined if the nodes lack sufficient source metadata to determine the position.
@@ -211,8 +211,8 @@ declare namespace parser {
211211
Child extends Node = Node
212212
> extends Base<Value> {
213213
nodes: Array<Child>;
214-
append(selector: Selector): this;
215-
prepend(selector: Selector): this;
214+
append(selector: Child): this;
215+
prepend(selector: Child): this;
216216
at(index: number): Child;
217217
/**
218218
* Return the most specific node at the line and column number given.
@@ -233,8 +233,8 @@ declare namespace parser {
233233
readonly last: Child;
234234
readonly length: number;
235235
removeChild(child: Child): this;
236-
removeAll(): Container;
237-
empty(): Container;
236+
removeAll(): this;
237+
empty(): this;
238238
insertAfter(oldNode: Child, newNode: Child): this;
239239
insertBefore(oldNode: Child, newNode: Child): this;
240240
each(callback: (node: Child) => boolean | void): boolean | undefined;

0 commit comments

Comments
 (0)