isPostgrestSuccess
isPostgrestSuccess<
T>(response):response is PostgrestResponse<T> & Object
Type guard to check if a PostgrestResponse is successful (has data)
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
response | PostgrestResponse<T> | The Postgrest response to check |
Returns
Section titled “Returns”response is PostgrestResponse<T> & Object
true if the response has data and no error