From fb3204657a838ff0456377204bfcca7804312d86 Mon Sep 17 00:00:00 2001 From: harlan Date: Wed, 22 Jan 2025 16:12:58 +1100 Subject: [PATCH] chore: type issues --- packages/nuxt/src/app/components/nuxt-island.ts | 1 + test/basic.test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nuxt/src/app/components/nuxt-island.ts b/packages/nuxt/src/app/components/nuxt-island.ts index cdbfb47917..0f6689264d 100644 --- a/packages/nuxt/src/app/components/nuxt-island.ts +++ b/packages/nuxt/src/app/components/nuxt-island.ts @@ -222,6 +222,7 @@ export default defineComponent({ if (activeHead) { activeHead.patch(res.head) } else { + // @ts-expect-error type juggling activeHead = head.push(res.head) } } diff --git a/test/basic.test.ts b/test/basic.test.ts index 1253413a1e..5af47a88c9 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -2801,7 +2801,7 @@ function normaliseIslandResult (result: NuxtIslandResponse) { .replace(/blue/, '#00f') } if (style.key) { - style.key = style.key.replace(/-[a-z0-9]+$/i, '') + style.key = String(style.key).replace(/-[a-z0-9]+$/i, '') } } }