fix: define empty props in slots for nuxt-component-meta parsing

This commit is contained in:
Benjamin Canac
2024-06-28 11:45:14 +02:00
parent 84d814f88b
commit 369e0b1952
28 changed files with 62 additions and 62 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'(): any
'default'(props?: any): any
'item': SlotProps<T>
'item-leading': SlotProps<T>
'item-label': SlotProps<T>