chore(theme): improve options type

This commit is contained in:
Benjamin Canac
2024-06-05 22:12:11 +02:00
parent ecc2240df0
commit 3f2b1b12cd
18 changed files with 220 additions and 192 deletions

View File

@@ -1,7 +1,8 @@
import { defu } from 'defu'
import type { ModuleOptions } from '../module'
import input from './input'
export default (config: { colors: string[] }) => {
export default (options: Required<ModuleOptions>) => {
return defu({
slots: {
arrow: 'fill-gray-200 dark:fill-gray-800',
@@ -24,5 +25,5 @@ export default (config: { colors: string[] }) => {
base: 'relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75',
value: 'truncate group-data-placeholder:text-current/50'
}
}, input(config))
}, input(options))
}