fix(templates): dont override AppConfig type

This commit is contained in:
Benjamin Canac
2024-03-09 20:29:19 +01:00
parent f9cc5e4f8e
commit e151be4734
6 changed files with 26 additions and 20 deletions

View File

@@ -1,8 +1,11 @@
<script lang="ts">
import { tv, type VariantProps } from 'tailwind-variants'
import appConfig from '#build/app.config'
import _appConfig from '#build/app.config'
import theme from '#build/ui/button'
import type { LinkProps } from '#ui/components/Link.vue'
import type { AppConfig } from '@nuxt/schema'
const appConfig = _appConfig as AppConfig & { ui: { button: Partial<typeof theme> } }
const button = tv({ extend: tv(theme), ...(appConfig.ui?.button || {}) })