mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-29 00:59:37 +07:00
29 lines
639 B
TypeScript
29 lines
639 B
TypeScript
import type { Request, Response } from "express";
|
|
import type { UserSchema } from "~/server/db/schema/user";
|
|
|
|
declare global {
|
|
namespace Vike {
|
|
interface PageContext {
|
|
Page: () => React.ReactElement;
|
|
data?: {
|
|
title?: string;
|
|
description?: string;
|
|
ogImage?: string;
|
|
};
|
|
config: {
|
|
title?: string;
|
|
description?: string;
|
|
Layout?: (props: { children: React.ReactNode }) => React.ReactElement;
|
|
};
|
|
abortReason?: string;
|
|
|
|
req: Request;
|
|
res: Response;
|
|
cookies: Record<string, string>;
|
|
user?: UserSchema | null;
|
|
}
|
|
}
|
|
}
|
|
|
|
export {};
|