Incorrect typescript type generation - Supabase