code-share/renderer/types.ts

29 lines
639 B
TypeScript
Raw Permalink Normal View History

2024-02-23 19:36:10 +07:00
import type { Request, Response } from "express";
import type { UserSchema } from "~/server/db/schema/user";
2024-02-22 12:14:58 +00:00
declare global {
namespace Vike {
interface PageContext {
Page: () => React.ReactElement;
data?: {
title?: string;
description?: string;
2024-03-03 18:55:51 +07:00
ogImage?: string;
2024-02-22 12:14:58 +00:00
};
config: {
title?: string;
description?: string;
2024-02-23 19:36:10 +07:00
Layout?: (props: { children: React.ReactNode }) => React.ReactElement;
2024-02-22 12:14:58 +00:00
};
abortReason?: string;
2024-02-23 19:36:10 +07:00
req: Request;
2024-02-23 19:36:10 +07:00
res: Response;
cookies: Record<string, string>;
2024-02-23 19:36:10 +07:00
user?: UserSchema | null;
2024-02-22 12:14:58 +00:00
}
}
}
export {};