Add eslint type assertions rule

Fixes #3359
This commit is contained in:
Daniel Imms
2021-06-04 06:23:12 -07:00
parent fe1d2f6af1
commit f52d631fa4
20 changed files with 63 additions and 62 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ export class AccessibilityManager extends Disposable {
}
private _onBoundaryFocus(e: FocusEvent, position: BoundaryPosition): void {
const boundaryElement = <HTMLElement>e.target;
const boundaryElement = e.target as HTMLElement;
const beforeBoundaryElement = this._rowElements[position === BoundaryPosition.TOP ? 1 : this._rowElements.length - 2];
// Don't scroll if the buffer top has reached the end in that direction