This repository has been archived on 2026-06-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nerve/packages/khala/worker-configuration.d.ts
T

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 {}
}