export type { PageContextServer } export type { PageContextClient } export type { PageContext } export type { PageProps } export type { Component } import type { PageContextBuiltInServer, /* // When using Client Routing https://vite-plugin-ssr.com/clientRouting PageContextBuiltInClientWithClientRouting as PageContextBuiltInClient /*/ // When using Server Routing PageContextBuiltInClientWithServerRouting as PageContextBuiltInClient //*/ } from 'vite-plugin-ssr/types' import type { ComponentPublicInstance } from 'vue' type Component = ComponentPublicInstance // https://stackoverflow.com/questions/63985658/how-to-type-vue-instance-out-of-definecomponent-in-vue-3/63986086#63986086 type Page = Component type PageProps = {} export type PageContextCustom = { Page: Page pageProps?: PageProps urlPathname: string exports: { documentProps?: { title?: string description?: string } } } type PageContextServer = PageContextBuiltInServer & PageContextCustom type PageContextClient = PageContextBuiltInClient & PageContextCustom type PageContext = PageContextClient | PageContextServer