From 80d1baf92050da411fb1bfe714401c498001dd36 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 18 Aug 2022 15:23:47 +0800 Subject: [PATCH] feat(types): export DefineComponent close #12748 --- types/index.d.ts | 2 +- types/v3-define-component.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 2b5d3a89d..19fce9872 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -41,7 +41,7 @@ export * from './v3-setup-helpers' export { Data } from './common' export { SetupContext } from './v3-setup-context' -export { defineComponent } from './v3-define-component' +export { defineComponent, DefineComponent } from './v3-define-component' export { defineAsyncComponent } from './v3-define-async-component' export { SetupFunction, diff --git a/types/v3-define-component.d.ts b/types/v3-define-component.d.ts index a2c47322b..69f65a2ec 100644 --- a/types/v3-define-component.d.ts +++ b/types/v3-define-component.d.ts @@ -20,7 +20,7 @@ import { Data, HasDefined } from './common' import { EmitsOptions } from './v3-setup-context' import { CreateElement, RenderContext } from './umd' -type DefineComponent< +export type DefineComponent< PropsOrPropOptions = {}, RawBindings = {}, D = {},