Skip to content

cloudflare/stale-types

Checks that a tracked environment types file matches what wrangler writes.

Part of the cloudflare configuration, at the recommended level. It runs at the push stage, once per scope. It runs wrangler.

Stale binding types let code compile against a binding the configuration dropped.

Run wrangler types and commit the file.

A Worker types file that differs from the output of wrangler types reports drift. Run wrangler types, and commit the new file.

Turn it off for some files, or one of its lint rules, with a reason:

gspot ignore cloudflare/stale-types --paths "<glob>" --reason "<why>"
gspot ignore cloudflare/stale-types --rule <rule> --reason "<why>"