fix(types): change ComponentOptions to DefineComponent (#1499)

progressbar
Divyansh Singh 2 years ago committed by GitHub
parent 946c579f2b
commit 57116607b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,9 +4,9 @@ declare const __CARBON__: boolean
declare const __VUE_PROD_DEVTOOLS__: boolean declare const __VUE_PROD_DEVTOOLS__: boolean
declare module '*.vue' { declare module '*.vue' {
import { ComponentOptions } from 'vue' import type { DefineComponent } from 'vue'
const comp: ComponentOptions const component: DefineComponent
export default comp export default component
} }
declare module '@siteData' { declare module '@siteData' {

23
theme.d.ts vendored

@ -1,18 +1,19 @@
// so that users can do `import DefaultTheme from 'vitepress/theme'` // so that users can do `import DefaultTheme from 'vitepress/theme'`
import type { ComponentOptions } from 'vue' import type { DefineComponent } from 'vue'
export const VPHomeHero: ComponentOptions // TODO: add props for these
export const VPHomeFeatures: ComponentOptions export const VPHomeHero: DefineComponent
export const VPHomeSponsors: ComponentOptions export const VPHomeFeatures: DefineComponent
export const VPDocAsideSponsors: ComponentOptions export const VPHomeSponsors: DefineComponent
export const VPTeamPage: ComponentOptions export const VPDocAsideSponsors: DefineComponent
export const VPTeamPageTitle: ComponentOptions export const VPTeamPage: DefineComponent
export const VPTeamPageSection: ComponentOptions export const VPTeamPageTitle: DefineComponent
export const VPTeamMembers: ComponentOptions export const VPTeamPageSection: DefineComponent
export const VPTeamMembers: DefineComponent
declare const theme: { declare const theme: {
Layout: ComponentOptions Layout: DefineComponent
NotFound: ComponentOptions NotFound: DefineComponent
} }
export default theme export default theme

Loading…
Cancel
Save