mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 08:20:39 +01:00
chore(theme): improve options type
This commit is contained in:
@@ -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',
|
||||
@@ -62,5 +63,5 @@ export default (config: { colors: string[] }) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
}, input(config))
|
||||
}, input(options))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user