Skip to content

Commit b3a359d

Browse files
author
Frederic Collonval
committed
Fix typing error
1 parent b0ae5b7 commit b3a359d

File tree

2 files changed

+525
-790
lines changed

2 files changed

+525
-790
lines changed

src/components/diff/mergeview.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,6 +1479,7 @@ function collapseSingle(
14791479
mark.clear();
14801480
cm.removeLineClass(from, 'wrap', 'CodeMirror-merge-collapsed-line');
14811481
}
1482+
// @ts-ignore
14821483
if (mark.explicitlyCleared) {
14831484
clear();
14841485
}
@@ -1735,8 +1736,7 @@ class TrackAlignable {
17351736
/* tslint:enable:no-bitwise */
17361737

17371738
hasMarker(n: number): boolean {
1738-
// @ts-ignore
1739-
let handle = this.cm.getLineHandle(n);
1739+
let handle = this.cm.getLineHandle(n) as any;
17401740
if (handle.markedSpans) {
17411741
for (let i = 0; i < handle.markedSpans.length; i++) {
17421742
if (
@@ -1751,8 +1751,7 @@ class TrackAlignable {
17511751
}
17521752

17531753
hasWidget(n: number): boolean {
1754-
// @ts-ignore
1755-
let handle = this.cm.getLineHandle(n);
1754+
let handle = this.cm.getLineHandle(n) as any;
17561755
if (handle.widgets) {
17571756
for (let i = 0; i < handle.widgets.length; i++) {
17581757
if (!handle.widgets[i].above && !handle.widgets[i].mergeSpacer) {
@@ -1768,8 +1767,8 @@ class TrackAlignable {
17681767
if (n == this.cm.lastLine()) {
17691768
return false;
17701769
}
1771-
// @ts-ignore
1772-
let handle = this.cm.getLineHandle(n + 1);
1770+
1771+
let handle = this.cm.getLineHandle(n + 1) as any;
17731772
if (handle.widgets) {
17741773
for (let i = 0; i < handle.widgets.length; i++) {
17751774
if (handle.widgets[i].above && !handle.widgets[i].mergeSpacer) {

0 commit comments

Comments
 (0)