@omnist-dev/omnist
    Preparing search index...

    Class WriteReport

    Everything a writer adjusted. Mirrors report.py's WriteReport.

    Python's WriteReport.__bool__ returns not self.errors, so if check_toml(doc): ... reads as "safe". JS has no boolean-coercion operator overload, so that's exposed here as the explicit ok getter instead -- same truth table, called out rather than implicit.

    Index
    adjustments: Adjustment[] = []

    All adjustments recorded during write operations.

    • get length(): number

      Total count of recorded adjustments.

      Returns number

    • get ok(): boolean

      true iff there are no error-severity entries (warnings are fine).

      Returns boolean

    • Record an adjustment into this report.

      Parameters

      • path: string
      • code: string
      • message: string
      • severity: Severity

      Returns void

    • Formats all adjustments into a human-readable multi-line string.

      Returns string