Skip to content

Commit e2a0e6b

Browse files
Update .changeset/proud-forks-build.md
Co-authored-by: Pete Bacon Darwin <[email protected]>
1 parent c5c3bea commit e2a0e6b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.changeset/proud-forks-build.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
fix: widen multi-env `vars` types in `wrangler types`
66

7-
Currently types for variable generate string literal, those are appropriate when
8-
a single environment has been specified in the config file but if multiple environments
9-
are specified this however wrongly restricts the typing, the changes here fix such
10-
incorrect behavior.
7+
Currently, the type generated for `vars` is a string literal consisting of the value of the variable in the top level environment. If multiple environments
8+
are specified this wrongly restricts the type, since the variable could contain any of the values from each of the environments.
119

1210
For example, given a `wrangler.toml` containing the following:
1311

0 commit comments

Comments
 (0)