We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isComment
1 parent 76e1e2a commit b87ed12Copy full SHA for b87ed12
src/node.ts
@@ -343,7 +343,7 @@ export function isText(node: Node): node is Text {
343
* @param node Node to check.
344
* @returns `true` if the node has the type `Comment`, `false` otherwise.
345
*/
346
-export function isComment(node: Node): node is DataNode {
+export function isComment(node: Node): node is Comment {
347
return node.type === ElementType.Comment;
348
}
349
0 commit comments