You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/proud-forks-build.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,8 @@
4
4
5
5
fix: widen multi-env `vars` types in `wrangler types`
6
6
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.
11
9
12
10
For example, given a `wrangler.toml` containing the following:
0 commit comments