This commit is contained in:
2025-05-24 01:47:40 +09:00
commit 09d97cbb0b
1594 changed files with 184634 additions and 0 deletions

21
server/types.ts Normal file
View File

@@ -0,0 +1,21 @@
import type { H3Event } from 'h3'
export interface VueroSSRContext extends Record<string, any> {
event: H3Event
}
export interface VueroInitialState extends Record<string, any> {
pinia?: Record<string, any>
}
export type VueroServerRender = (ctx: {
event: H3Event
manifest: Record<string, any>
template: string
}) => Promise<string | ReadableStream>
type PageParam = Record<string, string | string[]>
export type StaticParams = Record<
string,
() => PageParam[] | Promise<PageParam[]>
>