Skip to content

Commit 4763ae9

Browse files
committed
Remove unneeded ts-expect-errors
1 parent e01ce2f commit 4763ae9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* @typedef {import('parse5/dist/common/token.js').Attribute} P5Attribute
1212
* @typedef {Exclude<P5Node, P5Document|P5Fragment>} P5Child
1313
* @typedef {import('property-information').Schema} Schema
14-
* @typedef {import('property-information').Info} Info
1514
* @typedef {'html'|'svg'} Space
1615
* @typedef {import('hast').Parent} Parent
1716
* @typedef {import('hast').Root} Root
@@ -35,7 +34,6 @@ import {zwitch} from 'zwitch'
3534

3635
const own = {}.hasOwnProperty
3736

38-
// @ts-expect-error: hush.
3937
const one = zwitch('type', {handlers: {root, element, text, comment, doctype}})
4038

4139
/**
@@ -46,7 +44,6 @@ const one = zwitch('type', {handlers: {root, element, text, comment, doctype}})
4644
* @returns {P5Node}
4745
*/
4846
export function toParse5(tree, space) {
49-
// @ts-expect-error Types are wrong.
5047
return one(tree, space === 'svg' ? svg : html)
5148
}
5249

0 commit comments

Comments
 (0)