Skip to content

Commit 6c74fb0

Browse files
committed
chore: rename and export DefineSetupFnComponent
1 parent e0e0253 commit 6c74fb0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/runtime-core/src/apiDefineComponent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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>
139139
export 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)

packages/runtime-core/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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'
254258
export type {
255259
ComponentOptions,
256260
ComponentOptionsMixin,

0 commit comments

Comments
 (0)