try eslint-disable-next-line instead

This commit is contained in:
Nathan Shively-Sanders 2019-09-24 08:47:45 -07:00
parent aca0bb943f
commit 4ddf1919bb

View File

@ -33314,7 +33314,8 @@ namespace ts {
// Modifiers are never allowed on properties except for 'async' on a method declaration
if (prop.modifiers) {
for (const mod of prop.modifiers) {
// eslint-disable-next-line no-unnecessary-type-assertion
for (const mod of prop.modifiers!) { // TODO: GH#19955
if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) {
grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));
}