types: use stricter HostNode typings

This commit is contained in:
Evan You
2019-09-06 16:58:32 -04:00
parent 360f3b4f37
commit 3904678306
12 changed files with 228 additions and 171 deletions

View File

@@ -36,5 +36,6 @@ export const nodeOps = {
nextSibling: (node: Node): Node | null => node.nextSibling,
querySelector: (selector: string): Node | null => doc.querySelector(selector)
querySelector: (selector: string): Element | null =>
doc.querySelector(selector)
}