Skip to content

supabase/stale-types

Compares supabase.types_file with the output the Supabase CLI writes from the local database.

Part of the supabase configuration, at the recommended level. It runs at the push stage, once per scope. It runs supabase. It needs Docker, running.

Stale types let code compile against a column the database dropped.

Run supabase gen types typescript --local and write the output to the file.

A types file that differs from the local Supabase schema reports drift. With the local database running, write the output of supabase gen types typescript --local to that file.

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

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