Only the top-level PostgrestResponse types are exported.
What is the new behavior?
Export the sub-types that go into PostgrestResponse for type-union/guard-clause purposes.
Additional context
I noticed the plan is to rename PostgrestSingleResponse and deprecate the current PostgrestResponse, so instead of exporting PostgrestSingleResponseSuccess under its current name I went with PostgrestResponseSuccess.
This might mean holding the change back until v3, but since its to a (formely) internal type we should be okay.
What kind of change does this PR introduce?
Type change. Discussion here: https://github.com/supabase/supabase/discussions/12228
What is the current behavior?
Only the top-level
PostgrestResponse
types are exported.What is the new behavior?
Export the sub-types that go into
PostgrestResponse
for type-union/guard-clause purposes.Additional context
I noticed the plan is to rename
PostgrestSingleResponse
and deprecate the currentPostgrestResponse
, so instead of exportingPostgrestSingleResponseSuccess
under its current name I went withPostgrestResponseSuccess
.This might mean holding the change back until v3, but since its to a (formely) internal type we should be okay.