-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathglobal.d.ts
More file actions
43 lines (37 loc) · 858 Bytes
/
Copy pathglobal.d.ts
File metadata and controls
43 lines (37 loc) · 858 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
declare const __GIT_HASH__: string;
declare const __APP_VERSION__: string;
import { Session } from "@auth/core/types";
import type { PrismaClient } from "./generated/prisma/client";
import type { getPublicSiteInfo } from "./modules/site/service";
declare global {
namespace Vike {
interface PageContext {
session?: Session | null;
prisma: PrismaClient;
site?: Awaited<ReturnType<typeof getPublicSiteInfo>>;
}
}
}
declare module "telefunc" {
namespace Telefunc {
interface Context {
prisma: PrismaClient;
session?: Session | null;
}
}
}
declare module "@auth/core/types" {
interface Session {
user?: Session["user"] & {
id?: string;
username?: string;
role?: "admin";
};
}
interface User {
id?: string;
username?: string;
role?: "admin";
}
}
export {};