sincecutoff.com
← all changes

wrangler types --check verifies generated types

Introduced 2026-01-13 · score 0.98

HOW TO USE IT

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.

wrangler types --check
wrangler types <path>.d.ts --check

WHY THIS HELPS

In CI or a pre-commit hook, verify that the repository’s generated Worker types are current.

REQUIREMENTS AND LIMITATIONS

  • 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.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card