fix(types): improve with strict mode (#1041)

This commit is contained in:
Benjamin Canac
2023-11-30 12:02:37 +01:00
committed by GitHub
parent 464ff0b703
commit 4a9b66aeb3
68 changed files with 266 additions and 242 deletions

View File

@@ -15,6 +15,6 @@ export default {
openIcon: 'i-heroicons-chevron-down-20-solid',
closeIcon: '',
class: 'mb-1.5 w-full',
variant: 'soft'
variant: 'soft' as const
}
}
}

View File

@@ -12,7 +12,7 @@ export default {
},
avatar: {
base: 'flex-shrink-0 self-center',
size: 'md'
size: 'md' as const
},
color: {
white: {
@@ -31,9 +31,9 @@ export default {
icon: null,
closeButton: null,
actionButton: {
size: 'xs',
color: 'primary',
variant: 'link'
size: 'xs' as const,
color: 'primary' as const,
variant: 'link' as const
}
}
}
}

View File

@@ -27,7 +27,7 @@ export default {
},
avatar: {
base: 'flex-shrink-0',
size: '3xs'
size: '3xs' as const
},
shortcuts: 'hidden md:inline-flex flex-shrink-0 gap-0.5 ms-auto'
},
@@ -49,4 +49,4 @@ export default {
ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-700',
background: 'before:bg-white dark:before:bg-gray-700'
}
}
}