@@ -70,6 +70,7 @@ export type ComponentOptionsWithProps<
70
70
Props = ExtractPropTypes < PropsOptions >
71
71
> = ComponentOptionsBase < Props , D , C , M > & {
72
72
props ?: PropsOptions
73
+ emits ?: string [ ] | Record < string , null | ( ( emitData : any ) => boolean ) >
73
74
setup ?: SetupFunction < Props , RawBindings >
74
75
} & ThisType < ComponentRenderProxy < Props , RawBindings , D , C , M > >
75
76
@@ -82,6 +83,7 @@ export type ComponentOptionsWithArrayProps<
82
83
Props = Readonly < { [ key in PropNames ] ?: any } >
83
84
> = ComponentOptionsBase < Props , D , C , M > & {
84
85
props ?: PropNames [ ]
86
+ emits ?: string [ ] | Record < string , null | ( ( emitData : any ) => boolean ) >
85
87
setup ?: SetupFunction < Props , RawBindings >
86
88
} & ThisType < ComponentRenderProxy < Props , RawBindings , D , C , M > >
87
89
@@ -93,6 +95,7 @@ export type ComponentOptionsWithoutProps<
93
95
M extends MethodOptions = { }
94
96
> = ComponentOptionsBase < Props , D , C , M > & {
95
97
props ?: undefined
98
+ emits ?: string [ ] | Record < string , null | ( ( emitData : any ) => boolean ) >
96
99
setup ?: SetupFunction < Props , RawBindings >
97
100
} & ThisType < ComponentRenderProxy < Props , RawBindings , D , C , M > >
98
101
0 commit comments