{
  "slug": "wrangler-types-check-verifies-generated-types-7660f8508501",
  "title": "wrangler types --check verifies generated types",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-13T12:34:23.000Z",
  "announced_at": "2026-01-13T12:34:23.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When you need to verify generated Worker types in CI or a pre-commit hook, run `wrangler types --check`; it checks the configured output path without regenerating types and exits 0 when current or 1 when out of date. Use `wrangler types <path>.d.ts --check` to check a custom output path.",
    "examples": [
      "wrangler types --check",
      "wrangler types <path>.d.ts --check"
    ],
    "gotchas": [
      "Version: 4.59.0",
      "PATH: Output path for Worker types; defaults to `./worker-configuration.d.ts` and must have a `.d.ts` extension.",
      "--check: Check whether types at the specified path are up to date without regenerating them; exits 0 if current or 1 if out of date."
    ]
  },
  "why_it_matters": "In CI or a pre-commit hook, verify that the repository’s generated Worker types are current.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.59.0",
    "https://developers.cloudflare.com/workers/wrangler/commands/workers/"
  ],
  "rank": 0.98037,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-f6a5c6ef9f99094a-0:gate",
    "evidence_hash": "6d09d1e53c4b0550bd4a6b07f003003eef6be45e31c289af089aac5b7e83efc0"
  },
  "review": {
    "draft_hash": "b516455a18f73cb4047e6fd1354ec1de842fb4a6e17eb08378016e42e178332e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.82 (>= 0.6 needed)."
  }
}
