16 lines
489 B
TypeScript
16 lines
489 B
TypeScript
import type { D1Migration } from "@cloudflare/workers-types";
|
|
|
|
declare module "cloudflare:workers" {
|
|
type KhalaEnv = {
|
|
DB: D1Database;
|
|
THREAD: DurableObjectNamespace;
|
|
/** Used by Vitest: migrations to apply in setup (see d1-apply.ts). */
|
|
TEST_MIGRATIONS: D1Migration[] | undefined;
|
|
};
|
|
interface Env extends KhalaEnv {
|
|
/** Plain-text admin bearer value (set via [vars] or wrangler secret). */
|
|
ADMIN_SECRET: string;
|
|
}
|
|
interface ProvidedEnv extends Env {}
|
|
}
|