OpenClaw SDK
    Preparing search index...

    Function isRequestFrame

    • Type guard to check if a value is a RequestFrame.

      Parameters

      • frame: unknown

        Value to check

      Returns frame is RequestFrame

      True if the value is a RequestFrame

      const data = JSON.parse(someJson);
      if (isRequestFrame(data)) {
      console.log("Method:", data.method); // TypeScript knows it's RequestFrame
      }