mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 01:53:55 +00:00
fix(nuxt): add refresh
type in server component refs (#27778)
This commit is contained in:
parent
7433509734
commit
a7ad7c4174
@ -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 `
|
return `
|
||||||
import type { DefineComponent, SlotsType } from 'vue'
|
import type { DefineComponent, SlotsType } from 'vue'
|
||||||
${nuxt.options.experimental.componentIslands ? islandType : ''}
|
${nuxt.options.experimental.componentIslands ? islandType : ''}
|
||||||
|
Loading…
Reference in New Issue
Block a user