# cloudflare/stale-types

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

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

Part of the [`cloudflare`](/reference/configurations/cloudflare/) configuration, at the `recommended` [level](/start/concepts/#levels). It runs at the `push` [stage](/start/concepts/#stage), once per scope. It runs wrangler.

## Why

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

## What to do

Run `wrangler types` and commit the file.

## 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

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

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