Skip to content

Commit e01ce2f

Browse files
committed
Fix types for changes in parse5
1 parent 9e783eb commit e01ce2f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@
3030

3131
import {html, svg, find} from 'property-information'
3232
import {toH} from 'hast-to-hyperscript'
33-
import {webNamespaces} from 'web-namespaces'
33+
import {webNamespaces as ns} from 'web-namespaces'
3434
import {zwitch} from 'zwitch'
3535

36-
const ns = /** @type {Record<string, string>} */ (webNamespaces)
37-
3836
const own = {}.hasOwnProperty
3937

4038
// @ts-expect-error: hush.
@@ -60,7 +58,6 @@ export function toParse5(tree, space) {
6058
function root(node, schema) {
6159
/** @type {P5Document} */
6260
const p5 = {
63-
// @ts-expect-error: fine.
6461
nodeName: '#document',
6562
// @ts-expect-error: fine.
6663
mode: (node.data || {}).quirksMode ? 'quirks' : 'no-quirks',
@@ -78,7 +75,6 @@ function root(node, schema) {
7875
function fragment(node, schema) {
7976
/** @type {P5Fragment} */
8077
const p5 = {
81-
// @ts-expect-error: fine.
8278
nodeName: '#document-fragment',
8379
childNodes: []
8480
}

0 commit comments

Comments
 (0)