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.
What to do
Section titled “What to do”Run wrangler types and commit the file.
Example
Section titled “Example”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
Section titled “Turn it off”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>"