Skip to content

Commit bd47250

Browse files
fixup! add --loose-vars option to wrangler types command
rename `--loose-vars` to `--strict-vars`
1 parent af5a55d commit bd47250

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ wrangler workflows trigger <WORKFLOW_NAME> <PARAMS> [OPTIONS]
13881388
wrangler workflows trigger my-workflow '{"hello":"world"}'
13891389
```
13901390

1391-
{/*
1391+
{/\*
13921392

13931393
### `delete`
13941394

@@ -1401,7 +1401,7 @@ wrangler workflows delete <WORKFLOW_NAME> [OPTIONS]
14011401
- `WORKFLOW_NAME` <Type text="string" /> <MetaInfo text="required" />
14021402
- The name of a registered Workflow.
14031403

1404-
*/}
1404+
\*/}
14051405

14061406
## `tail`
14071407

@@ -1750,7 +1750,7 @@ wrangler queues info <name>
17501750
```
17511751

17521752
- `name` <Type text="string" /> <MetaInfo text="required" />
1753-
- The name of the queue to inspect.
1753+
- The name of the queue to inspect.
17541754

17551755
### `consumer`
17561756

@@ -2287,10 +2287,9 @@ The minimum required Wrangler version to use this command is 3.66.0.
22872287
- Leave the path blank to use the default option, e.g. `npx wrangler types --x-include-runtime`
22882288
- A custom path must be relative to the project root, e.g. `./my-runtime-types.d.ts`
22892289
- A custom path must have a `d.ts` extension.
2290-
- `--loose-vars` <Type text="boolean" /> <MetaInfo text="optional (default: false)" />
2291-
- Flag used to generate "loose"/generic types instead of literal and union types for variables (e.g. `myEnv: string` instead of `myEnv: 'my env variable'`)
2292-
- Useful when environment variables can often change (especially with multiple environments involved)
2293-
2290+
- `--strict-vars` <Type text="boolean" /> <MetaInfo text="optional (default: true)" />
2291+
- 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'`)
2292+
- Useful when environment variables can often change (especially with multiple environments are involved)
22942293

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

0 commit comments

Comments
 (0)