car-crushers-portal/index.d.ts
2023-10-19 16:49:05 -04:00

25 lines
509 B
TypeScript

/// <reference types="vite/client" />
import { type PageContextBuiltIn } from "vite-plugin-ssr";
declare global {
interface Env {
ASSETS: Fetcher;
DATA: KVNamespace;
[k: string]: string;
}
type RequestContext = EventContext<Env, string, { [k: string]: any }>;
interface PageContext extends PageContextBuiltIn {
current_user?: { [k: string]: any };
kv: KVNamespace;
pageProps: {
[k: string]: any;
};
requireAuth?: boolean;
status: number;
}
}
export {};