Skip to content

Commit

Permalink
Add tslint ignores.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Oct 4, 2019
1 parent 50223fd commit 475cfff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10253,6 +10253,7 @@ namespace ts {
break;
}
}
// tslint:disable no-unnecessary-type-assertion
return links.resolvedType!; // TODO: GH#18217
}

Expand Down Expand Up @@ -32948,6 +32949,7 @@ namespace ts {

// Modifiers are never allowed on properties except for 'async' on a method declaration
if (prop.modifiers) {
// tslint:disable 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));
Expand Down

0 comments on commit 475cfff

Please sign in to comment.