OpenClaw SDK
    Preparing search index...

    Function isEventFrame

    • Type guard to check if a value is an EventFrame.

      Parameters

      • frame: unknown

        Value to check

      Returns frame is EventFrame

      True if the value is an EventFrame

      const data = JSON.parse(someJson);
      if (isEventFrame(data)) {
      console.log("Event:", data.event); // TypeScript knows it's EventFrame
      }