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.
1 parent df61cca commit 32f5613Copy full SHA for 32f5613
src/compiler/checker.ts
@@ -33312,7 +33312,7 @@ namespace ts {
33312
33313
// Modifiers are never allowed on properties except for 'async' on a method declaration
33314
if (prop.modifiers) {
33315
- for (const mod of prop.modifiers!) { // TODO: GH#19955
+ for (const mod of prop.modifiers) { // TODO: GH#19955
33316
if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) {
33317
grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));
33318
}
0 commit comments