E0165: TypeScript style const field
const
fields are only allowed in TypeScript, not JavaScript
class C {
const f = null;
}
To fix this error, remove the const
declarator from the field
class C {
f = null;
}
Find bugs in JavaScript programs.
const
fields are only allowed in TypeScript, not JavaScript
class C {
const f = null;
}
To fix this error, remove the const
declarator from the field
class C {
f = null;
}