Skip to content
Source
Sign inSign up
Open History to see the last commit

upstream.d.ts

12 lines547 Bytes

1// The source-only upstream package expects Wrangler-generated globals but does not ship them.
2import type * as Cloudflare from "@cloudflare/workers-types";
3import type { ProtocolBindings } from "../src/protocolTypes.ts";
4​
5declare global {
6 interface Env extends ProtocolBindings {}
7 type D1Database = Cloudflare.D1Database;
8 type D1Result<T = unknown> = Cloudflare.D1Result<T>;
9 type R2MultipartUpload = Cloudflare.R2MultipartUpload;
10 type R2UploadedPart = Cloudflare.R2UploadedPart;
11 type ExecutionContext = Cloudflare.ExecutionContext;