fix(templates): add error in AppConfig type

This commit is contained in:
Benjamin Canac
2024-07-09 12:17:34 +02:00
parent 510433568a
commit c7536a7af9

View File

@@ -96,7 +96,8 @@ const icons = ${JSON.stringify(nuxt.options.appConfig.ui.icons)};
type AppConfigUI = { type AppConfigUI = {
colors?: { colors?: {
primary?: typeof colors[number] primary?: Exclude<typeof colors[number], 'error'>
error?: Exclude<typeof colors[number], 'primary'>
gray?: 'slate' | 'cool' | 'zinc' | 'neutral' | 'stone' gray?: 'slate' | 'cool' | 'zinc' | 'neutral' | 'stone'
} }
icons?: Partial<typeof icons> icons?: Partial<typeof icons>