Skip to content

Commit

Permalink
ts error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Retschga committed Apr 11, 2022
1 parent 853802b commit 4574c16
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/diff_match_patch.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

0 comments on commit 4574c16

Please sign in to comment.