File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export type DefineComponent<
8989 > &
9090 PP
9191
92- type DirectSetupComponent <
92+ export type DefineSetupFnComponent <
9393 P extends Record < string , any > ,
9494 E extends EmitsOptions = { } ,
9595 S extends SlotsType = SlotsType ,
@@ -135,7 +135,7 @@ export function defineComponent<
135135 emits ?: E | EE [ ]
136136 slots ?: S
137137 } ,
138- ) : DirectSetupComponent < Props , E , S >
138+ ) : DefineSetupFnComponent < Props , E , S >
139139export function defineComponent <
140140 Props extends Record < string , any > ,
141141 E extends EmitsOptions = { } ,
@@ -151,7 +151,7 @@ export function defineComponent<
151151 emits ?: E | EE [ ]
152152 slots ?: S
153153 } ,
154- ) : DirectSetupComponent < Props , E , S >
154+ ) : DefineSetupFnComponent < Props , E , S >
155155
156156// overload 2: object format with no props
157157// (uses user defined props interface)
Original file line number Diff line number Diff line change @@ -250,7 +250,11 @@ export type {
250250 AllowedComponentProps ,
251251 ComponentInstance ,
252252} from './component'
253- export type { DefineComponent , PublicProps } from './apiDefineComponent'
253+ export type {
254+ DefineComponent ,
255+ DefineSetupFnComponent ,
256+ PublicProps ,
257+ } from './apiDefineComponent'
254258export type {
255259 ComponentOptions ,
256260 ComponentOptionsMixin ,
You can’t perform that action at this time.
0 commit comments