g1t/apps/web/workers/env.d.ts

14 lines408 bytesCodeBlame
1import type { EventsApi, ReposApi, ServiceBinding, WorkApi } from "@g1t/contracts";
2
3declare global {
4 namespace Cloudflare {
5 interface Env {
6 IDENTITY: ServiceBinding;
7 /** Also serves git over HTTPS through `fetch`. */
8 REPOS: ReposApi & { fetch(request: Request): Promise<Response> };
9 WORK: WorkApi;
10 EVENTS: EventsApi;
11 }
12 }
13 interface Env extends Cloudflare.Env {}
14}