chore: type issues

This commit is contained in:
harlan 2025-01-22 16:12:58 +11:00
parent 012950d7e5
commit fb3204657a
2 changed files with 2 additions and 1 deletions

View File

@ -222,6 +222,7 @@ export default defineComponent({
if (activeHead) { if (activeHead) {
activeHead.patch(res.head) activeHead.patch(res.head)
} else { } else {
// @ts-expect-error type juggling
activeHead = head.push(res.head) activeHead = head.push(res.head)
} }
} }

View File

@ -2801,7 +2801,7 @@ function normaliseIslandResult (result: NuxtIslandResponse) {
.replace(/blue/, '#00f') .replace(/blue/, '#00f')
} }
if (style.key) { if (style.key) {
style.key = style.key.replace(/-[a-z0-9]+$/i, '') style.key = String(style.key).replace(/-[a-z0-9]+$/i, '')
} }
} }
} }