issue_tree
    Preparing search index...

    Type Alias RenderResult

    RenderResult:
        | { data: string; kind: "text" }
        | { data: Uint8Array; kind: "binary" }

    A rendered result: text (utf-8) or binary (image bytes), tagged so the CLI can route it.

    Type Declaration

    • { data: string; kind: "text" }
      • data: string

        The rendered text (JSON, DOT, SVG, or HTML).

      • kind: "text"

        Discriminator: this arm carries utf-8 text output.

    • { data: Uint8Array; kind: "binary" }
      • data: Uint8Array

        The rendered image bytes (PNG or JPEG).

      • kind: "binary"

        Discriminator: this arm carries binary image bytes.