Przeglądaj źródła

feat(types): export DefineComponent

close #12748
Evan You 3 lat temu
rodzic
commit
80d1baf920
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      types/index.d.ts
  2. 1 1
      types/v3-define-component.d.ts

+ 1 - 1
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,

+ 1 - 1
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 = {},