Type guard to check if an SDK response has a 200 status code.
200
The SDK response to check
true if the response has 200 status code, false otherwise
true
false
const response = await someBridgeMethod();if (isOk(response)) { // response narrowed to status code `200` variant, `result` is available console.log(response.result);} Copy
const response = await someBridgeMethod();if (isOk(response)) { // response narrowed to status code `200` variant, `result` is available console.log(response.result);}
Type guard to check if an SDK response has a
200status code.