#9709 wrangler types command do not create KV Namespace types
Fixed by PR #11893 merged 2026-01-21
Close with comment pointing to fix
Analysis Report
Issue Review: cloudflare/workers-sdk#9709
Summary
wrangler types command doesn't generate KV Namespace types when they are only defined in environments, not at the root level.
Findings
- Created: 2025-06-23
- Updated: 2025-10-02
- Version: wrangler 4.20.5 → wrangler 4.61.0
- Component: wrangler (types command)
- Labels: bug
- Comments: 6
Key Evidence
- FIXED: PR #11893 merged on 2026-01-21 explicitly fixes this issue
- PR title: "Generate types for all bindings across all environments"
- The fix generates types for bindings from ALL environments, not just top-level
Recommendation
Status: CLOSE
Reasoning: PR #11893 was merged on 2026-01-21 and explicitly lists #9709 in its "Fixes" line. The fix generates TypeScript types for bindings across all environments, which directly addresses this issue.
Action: Close the issue with a comment pointing to the fix.
Suggested Comment
This issue has been fixed in PR #11893, which was merged on January 21, 2026. The
wrangler typescommand now generates types for bindings from all environments by default.Please update to wrangler 4.61.0 or later to get this fix. If you're still experiencing issues after updating, please open a new issue with reproduction steps.
Notes & Feedback (0)
No notes yet.