mirror of
https://github.com/beilunyang/moemail.git
synced 2025-09-26 19:41:22 +08:00
24 lines
362 B
TypeScript
24 lines
362 B
TypeScript
/// <reference types="@cloudflare/workers-types" />
|
|
|
|
|
|
declare global {
|
|
interface CloudflareEnv {
|
|
DB: D1Database;
|
|
SITE_CONFIG: KVNamespace;
|
|
}
|
|
|
|
type Env = CloudflareEnv
|
|
}
|
|
|
|
declare module "next-auth" {
|
|
interface User {
|
|
roles?: { name: string }[]
|
|
username?: string | null
|
|
}
|
|
|
|
interface Session {
|
|
user: User
|
|
}
|
|
}
|
|
|
|
export type { Env } |