Skip to content
3 changes: 3 additions & 0 deletions src/content/docs/workers/wrangler/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2287,6 +2287,9 @@ The minimum required Wrangler version to use this command is 3.66.0.
- Leave the path blank to use the default option, e.g. `npx wrangler types --x-include-runtime`
- A custom path must be relative to the project root, e.g. `./my-runtime-types.d.ts`
- A custom path must have a `d.ts` extension.
- `--strict-vars` <Type text="boolean" /> <MetaInfo text="optional (default: true)" />
- Flag to opt out of the default generation of literal and union types for variables in favour of more generic types (e.g. to generate `myEnv: string` instead of `myEnv: 'my env variable'`)
- Useful when environment variables can often change (especially with multiple environments are involved)

<Render file="wrangler-commands/global-flags" product="workers" />

Expand Down
Loading