@grabjs/superapp-sdk
    Preparing search index...

    Function isOk

    • Type guard to check if a JSBridge response is a 200 OK (operation succeeded with a result).

      Type Parameters

      Parameters

      • response: T

        The JSBridge response to check

      Returns response is Extract<T, { status_code: 200 }>

      True if the response has status code 200, false otherwise