mirror of https://github.com/nuxt/nuxt.git
fix(nuxt): add `refresh` type in server component refs (#27778)
This commit is contained in:
parent
2a01abf11d
commit
4dd71b6f2d
|
@ -112,7 +112,7 @@ export const componentsTypeTemplate = {
|
|||
]
|
||||
})
|
||||
|
||||
const islandType = 'type IslandComponent<T extends DefineComponent> = T & DefineComponent<{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>>'
|
||||
const islandType = 'type IslandComponent<T extends DefineComponent> = T & DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>>'
|
||||
return `
|
||||
import type { DefineComponent, SlotsType } from 'vue'
|
||||
${nuxt.options.experimental.componentIslands ? islandType : ''}
|
||||
|
|
Loading…
Reference in New Issue