From a7ad7c41746bd042d304c23a5cebb07aa7747b73 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Mon, 24 Jun 2024 11:42:03 +0200 Subject: [PATCH] fix(nuxt): add `refresh` type in server component refs (#27778) --- packages/nuxt/src/components/templates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/components/templates.ts b/packages/nuxt/src/components/templates.ts index ff55e3c7f2..d9dc134e64 100644 --- a/packages/nuxt/src/components/templates.ts +++ b/packages/nuxt/src/components/templates.ts @@ -112,7 +112,7 @@ export const componentsTypeTemplate = { ] }) - const islandType = 'type IslandComponent = T & DefineComponent<{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>>' + const islandType = 'type IslandComponent = T & DefineComponent<{}, {refresh: () => Promise}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>>' return ` import type { DefineComponent, SlotsType } from 'vue' ${nuxt.options.experimental.componentIslands ? islandType : ''}