generated from CrimsonChi/kaioken-ssr-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
types.vike.ts
31 lines (26 loc) · 870 Bytes
/
types.vike.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//https://vike.dev/pageContext#custom
declare global {
namespace Vike {
interface PageContext {
abortReason?: string | { notAdmin: true }
abortStatusCode?: number
is404?: boolean
Page: () => JSX.Element
Layout: ({ children }: { children: JSX.Children }) => JSX.Element
title: string | ((ctx: PageContext) => string)
description: string | ((ctx: PageContext) => string)
keywords: string[] | ((ctx: PageContext) => string[])
config: {
title: string | ((ctx: PageContext) => string)
description: string | ((ctx: PageContext) => string)
keywords: string[] | ((ctx: PageContext) => string[])
Page: () => JSX.Element
Layout?: Kaioken.FC
}
routeParams: Record<string, string>
urlPathname: string
data: Record<string, unknown>
}
}
}
export {}