mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Fix linting issue
This commit is contained in:
parent
5962a5c08e
commit
f0bf72fe34
@ -33378,7 +33378,7 @@ namespace ts {
|
||||
|
||||
// Modifiers are never allowed on properties except for 'async' on a method declaration
|
||||
if (prop.modifiers) {
|
||||
for (const mod of prop.modifiers!) { // TODO: GH#19955
|
||||
for (const mod of prop.modifiers) {
|
||||
if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) {
|
||||
grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user