Function stringifyDifference

  • Takes a Difference object and returns a string using stringifyDifferenceDictionary.

    Example

    stringifyDifference({
    kind: "D",
    lhs: "🟢",
    path: ["🟢", "🟩"],
    }); // "🟢.🟩 is missing."

    stringifyDifference({
    kind: "X",
    error: "❌",
    }); // "there was an uncaught error: ❌."

    Returns

    Formatted string.

    Type Parameters

    • Value

    Parameters

    • difference: Difference<Value>

      Difference object.

    Returns string