Skip to content

Commit 71e338f

Browse files
committed
fix: simplify type complexity for cloudflare types
1 parent fd96966 commit 71e338f

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/presets/cloudflare/wrangler/_utils.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Extracted from miniflare
2-
export type Json =
3-
| string
4-
| number
5-
| boolean
6-
| {
7-
[key: string]: Json;
8-
}
9-
| Json[];
10-
111
// Extracted from @types/yargs
122
type PascalCase<S extends string> = string extends S
133
? string

src/presets/cloudflare/wrangler/environment.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
* Source: https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/src/config/environment.ts
77
*/
88

9-
import type { Json } from "./_utils";
10-
119
/**
1210
* The `Environment` interface declares all the configuration fields that
1311
* can be specified for an environment.
@@ -455,7 +453,7 @@ export interface EnvironmentNonInheritable {
455453
* @default {}
456454
* @nonInheritable
457455
*/
458-
vars: Record<string, string | Json>;
456+
vars: Record<string, unknown>;
459457

460458
/**
461459
* A list of durable objects that your Worker should be bound to.

0 commit comments

Comments
 (0)