Skip to content

Commit 000cea8

Browse files
authored
Fix build of workers (#9)
1 parent 9f60880 commit 000cea8

6 files changed

Lines changed: 7417 additions & 5519 deletions

File tree

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

load-context.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import { type PlatformProxy } from "wrangler";
22

3-
// When using `wrangler.toml` to configure bindings,
3+
// When using `wrangler.jsonc` to configure bindings,
44
// `wrangler types` will generate types for those bindings
55
// into the global `Env` interface.
6-
// Need this empty interface so that typechecking passes
7-
// even if no `wrangler.toml` exists.
8-
// I removed this because it stops VSCode seeing the worker-configuration.d.ts
9-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
10-
// interface Env {}
6+
// See worker-configuration.d.ts for the generated types.
117

128
type Cloudflare = Omit<PlatformProxy<Env>, "dispose">;
139

0 commit comments

Comments
 (0)