Skip to content

Commit 3aae24f

Browse files
committed
fix(nuxt): compatibility of lazy components and h
1 parent 5d78366 commit 3aae24f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/components/templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ type HydrationStrategies = {
132132
hydrateWhen?: boolean
133133
hydrateNever?: true
134134
}
135-
type LazyComponent<T> = (T & DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }>)
135+
type LazyComponent<T> = DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }> & T
136136
interface _GlobalComponents {
137137
${componentTypes.map(([pascalName, type]) => ` '${pascalName}': ${type}`).join('\n')}
138138
${componentTypes.map(([pascalName, type]) => ` 'Lazy${pascalName}': LazyComponent<${type}>`).join('\n')}

0 commit comments

Comments
 (0)