chore: remove unnecessary type cast
This commit is contained in:
parent
eadcaead37
commit
e8ee163fdd
@ -334,10 +334,7 @@ function parseElement(
|
||||
|
||||
// Children.
|
||||
ancestors.push(element)
|
||||
const mode = (context.options.getTextMode(
|
||||
element.tag,
|
||||
element.ns
|
||||
) as unknown) as TextModes
|
||||
const mode = context.options.getTextMode(element.tag, element.ns)
|
||||
const children = parseChildren(context, mode, ancestors)
|
||||
ancestors.pop()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user