Cotton code
18 lines · 695 B · TypeScriptRaw
import type { Env as BusinessEnv } from "../src/env.ts";declare global {  // Vite's glob import, used by the fixtures to read the real package JSON.  interface ImportMeta {    glob(pattern: string, options: { eager: true; import?: string; query?: string }): Record<string, unknown>;    // Lazily: the paths alone (the kit's pictures, by name), nothing imported.    glob(pattern: string): Record<string, () => Promise<unknown>>;  }}declare global {  // `env` from cloudflare:test is typed as Cloudflare.Env; the Worker's bindings are that.  namespace Cloudflare {    // eslint-disable-next-line @typescript-eslint/no-empty-object-type    interface Env extends BusinessEnv {}  }}