add explict type-annotation after making variable const

This commit is contained in:
Johannes 2022-06-08 17:54:10 +02:00
parent 0656d21d11
commit b501e62963
No known key found for this signature in database
GPG key ID: 6DEF802A22264FCA

View file

@ -307,7 +307,7 @@ class Mode extends Disposable {
const tokensArr: number[] = [];
let prevColor: ColorId = -1;
for (let i = 0; i < line.length; i++) {
const colorId = line.charAt(i) === '.' ? 7 : 9;
const colorId: ColorId = line.charAt(i) === '.' ? 7 : 9;
if (prevColor !== colorId) {
tokensArr.push(i);
tokensArr.push((