Skip to content

Commit 92c7f04

Browse files
authored
fix: Node#prev and Node#next type for the first/last node
1 parent 7d543aa commit 92c7f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postcss-selector-parser.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ declare namespace parser {
164164
rawSpaceAfter: string;
165165
remove(): Node;
166166
replaceWith(...nodes: Node[]): Node;
167-
next(): Node;
168-
prev(): Node;
167+
next(): Node | undefined;
168+
prev(): Node | undefined;
169169
clone(opts?: {[override: string]:any}): this;
170170
/**
171171
* Return whether this node includes the character at the position of the given line and column.

0 commit comments

Comments
 (0)