Skip to content

Commit 89ceb7a

Browse files
committed
explicit typescript type
1 parent 339052e commit 89ceb7a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

esm/dom/utils.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { childNodes, nodeType, parentNode } from './symbols.js';
44

55
import { empty } from '../utils.js';
66

7+
8+
/**
9+
* @param {import("./element.js").default} element
10+
* @returns {boolean}
11+
*/
712
export const asElement = ({ [nodeType]: type }) => type === ELEMENT_NODE;
813

914
export const changeParentNode = (node, parent) => {

0 commit comments

Comments
 (0)