mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
38 lines
926 B
TypeScript
38 lines
926 B
TypeScript
export type {
|
|
PageContextServer,
|
|
/*
|
|
// When using Client Routing https://vike.dev/clientRouting
|
|
PageContextClient,
|
|
PageContext,
|
|
/*/
|
|
// When using Server Routing
|
|
PageContextClientWithServerRouting as PageContextClient,
|
|
PageContextWithServerRouting as PageContext
|
|
//*/
|
|
} from 'vike/types'
|
|
export type { PageProps }
|
|
export type { Component }
|
|
|
|
// https://vike.dev/pageContext#typescript
|
|
declare global {
|
|
namespace Vike {
|
|
interface PageContext {
|
|
Page: Page
|
|
pageProps?: PageProps
|
|
urlPathname: string
|
|
exports: {
|
|
documentProps?: {
|
|
title?: string
|
|
description?: string
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
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 = {}
|