From 1b14b5dcd9c24d85f12f85255e0617733bc1c452 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 14 Jul 2025 14:49:23 +0200 Subject: [PATCH] cli(templates): fix component type --- cli/templates.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/templates.mjs b/cli/templates.mjs index d2ff1221..540dbd70 100644 --- a/cli/templates.mjs +++ b/cli/templates.mjs @@ -35,7 +35,7 @@ ${pro ? `import type { ComponentConfig } from '@nuxt/ui'` : ''} import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}' ${!pro ? `import type { ComponentConfig } from '../types/utils'` : ''} -type ${upperName} = ComponentConfig +type ${upperName} = ComponentConfig export interface ${upperName}Props { /** @@ -80,7 +80,7 @@ ${pro ? `import type { ComponentConfig } from '@nuxt/ui'` : ''} import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}' ${!pro ? `import type { ComponentConfig } from '../types/utils'` : ''} -type ${upperName} = ComponentConfig +type ${upperName} = ComponentConfig export interface ${upperName}Props extends Pick<${upperName}RootProps> { class?: any