fix: explicit any

This commit is contained in:
Ayo 2023-01-29 00:43:28 +01:00
parent 075a9d115b
commit ed23c47ff2

View file

@ -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]