Type guard to check if an SDK response has a success status code (200, 204).
200
204
The SDK response to check
true if the response is successful, false otherwise
true
false
const response = await someBridgeMethod();if (isSuccess(response)) { // response narrowed to success variants console.log(response);} Copy
const response = await someBridgeMethod();if (isSuccess(response)) { // response narrowed to success variants console.log(response);}
Type guard to check if an SDK response has a success status code (
200,204).