Skip to content

Commit 80d1baf

Browse files
committed
feat(types): export DefineComponent
close #12748
1 parent f0057b1 commit 80d1baf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export * from './v3-setup-helpers'
4141

4242
export { Data } from './common'
4343
export { SetupContext } from './v3-setup-context'
44-
export { defineComponent } from './v3-define-component'
44+
export { defineComponent, DefineComponent } from './v3-define-component'
4545
export { defineAsyncComponent } from './v3-define-async-component'
4646
export {
4747
SetupFunction,

types/v3-define-component.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Data, HasDefined } from './common'
2020
import { EmitsOptions } from './v3-setup-context'
2121
import { CreateElement, RenderContext } from './umd'
2222

23-
type DefineComponent<
23+
export type DefineComponent<
2424
PropsOrPropOptions = {},
2525
RawBindings = {},
2626
D = {},

0 commit comments

Comments
 (0)