We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64c3fca + 41c3e54 commit 2e985e7Copy full SHA for 2e985e7
src/compiler/checker.ts
@@ -33314,6 +33314,7 @@ namespace ts {
33314
33315
// Modifiers are never allowed on properties except for 'async' on a method declaration
33316
if (prop.modifiers) {
33317
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
33318
for (const mod of prop.modifiers!) { // TODO: GH#19955
33319
if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) {
33320
grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));
0 commit comments