mirror of
https://github.com/beilunyang/moemail.git
synced 2025-12-24 11:30:51 +08:00
34 lines
608 B
TypeScript
34 lines
608 B
TypeScript
/// <reference types="@cloudflare/workers-types" />
|
|
|
|
|
|
declare global {
|
|
interface CloudflareEnv {
|
|
DB: D1Database;
|
|
SITE_CONFIG: KVNamespace;
|
|
}
|
|
|
|
interface Window {
|
|
turnstile?: {
|
|
render: (element: HTMLElement | string, options: Record<string, unknown>) => string
|
|
reset: (widgetId?: string) => void
|
|
remove: (widgetId: string) => void
|
|
}
|
|
}
|
|
|
|
type Env = CloudflareEnv
|
|
}
|
|
|
|
declare module "next-auth" {
|
|
interface User {
|
|
roles?: { name: string }[]
|
|
username?: string | null
|
|
providers?: string[]
|
|
}
|
|
|
|
interface Session {
|
|
user: User
|
|
}
|
|
}
|
|
|
|
export type { Env }
|