forked from Mirrors/elk
fix: explicit any
This commit is contained in:
parent
075a9d115b
commit
ed23c47ff2
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ export function parseMastodonHTML(
|
|||
const node = parse(html) as Node
|
||||
|
||||
if (cleanSharedLink) {
|
||||
const filteredNode = node.children.filter(child => !!child.children) // remove invisible spans
|
||||
const filteredNode = node.children.filter((child: Node) => !!child.children) // remove invisible spans
|
||||
const filteredLength = filteredNode.length
|
||||
const length = filteredNode[filteredLength - 1].children.length
|
||||
const lastChild = filteredNode[filteredLength - 1].children[length - 1]
|
||||
|
|
Loading…
Reference in a new issue