Skip to content

isPostgrestSuccess

isPostgrestSuccess<T>(response): response is PostgrestResponse<T> & Object

Type guard to check if a PostgrestResponse is successful (has data)

Type Parameter
T
ParameterTypeDescription
responsePostgrestResponse<T>The Postgrest response to check

response is PostgrestResponse<T> & Object

true if the response has data and no error