chore(components): use {} for empty props

This commit is contained in:
Benjamin Canac
2024-06-28 22:03:14 +02:00
parent 8113c2163c
commit f9c69a7837
30 changed files with 69 additions and 63 deletions

View File

@@ -47,7 +47,7 @@ export interface ContextMenuEmits extends ContextMenuRootEmits {}
type SlotProps<T> = (props: { item: T, active?: boolean, index: number }) => any
export type ContextMenuSlots<T extends { slot?: string }> = {
'default'(props?: any): any
'default'(props?: {}): any
'item': SlotProps<T>
'item-leading': SlotProps<T>
'item-label': SlotProps<T>