From 4574c167041e4def8d9d82171ac17f7a99e41e90 Mon Sep 17 00:00:00 2001 From: Retschga Date: Mon, 11 Apr 2022 19:23:53 +0200 Subject: [PATCH] ts error fix --- src/utils/diff_match_patch.utils.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/utils/diff_match_patch.utils.js b/src/utils/diff_match_patch.utils.js index cd2d3bf..2906f5b 100644 --- a/src/utils/diff_match_patch.utils.js +++ b/src/utils/diff_match_patch.utils.js @@ -11,6 +11,7 @@ const diff_match_patch = function () { DIFF_DELETE = -1, DIFF_INSERT = 1, DIFF_EQUAL = 0; + diff_match_patch.Diff = function (a, b) { this[0] = a; this[1] = b; @@ -906,8 +907,8 @@ diff_match_patch.patch_obj.prototype.toString = function () { return a.join('').replace(/%20/g, ' '); }; this.diff_match_patch = diff_match_patch; -this.DIFF_DELETE = DIFF_DELETE; -this.DIFF_INSERT = DIFF_INSERT; -this.DIFF_EQUAL = DIFF_EQUAL; +//this.DIFF_DELETE = DIFF_DELETE; +//this.DIFF_INSERT = DIFF_INSERT; +//this.DIFF_EQUAL = DIFF_EQUAL; export default diff_match_patch;