From ed23c47ff20b7ad835daa832f43f2caf498f2c91 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 29 Jan 2023 00:43:28 +0100 Subject: [PATCH] fix: explicit any --- composables/content-parse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/content-parse.ts b/composables/content-parse.ts index 1de903ab..947d3421 100644 --- a/composables/content-parse.ts +++ b/composables/content-parse.ts @@ -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]