Skip to content

Commit b87ed12

Browse files
committed
fix(node): Fix isComment return type
1 parent 76e1e2a commit b87ed12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ export function isText(node: Node): node is Text {
343343
* @param node Node to check.
344344
* @returns `true` if the node has the type `Comment`, `false` otherwise.
345345
*/
346-
export function isComment(node: Node): node is DataNode {
346+
export function isComment(node: Node): node is Comment {
347347
return node.type === ElementType.Comment;
348348
}
349349

0 commit comments

Comments
 (0)