You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generated type for JSONB NOT NULL column allows null #1055
When I create a JSONB column that is explicitly NOT NULL, I can see that null values are not allowed according to Supabase Studio (it understands the Postgres restriction exists).
When I generate Typescript types for this database, however, the Json type for this column allows null.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Create a non-nullable JSONB column
Run supabase gen types --lang=typescript
View the generated type for the column, which is Json
Expected behavior
I would expect the Typescript type for this column to be NonNullable<Json>.
Activity