We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2373db9 commit 5a8d335Copy full SHA for 5a8d335
src/compiler/checker.ts
@@ -35632,7 +35632,9 @@ namespace ts {
35632
35633
// Never report expensive statements in .d.ts files
35634
if (!checkingDtsFile) {
35635
- if (node.kind >= SyntaxKind.FirstStatement && node.kind <= SyntaxKind.LastStatement) {
+ if (node.kind >= SyntaxKind.FirstStatement && node.kind <= SyntaxKind.LastStatement ||
35636
+ node.kind === SyntaxKind.TypeAliasDeclaration ||
35637
+ node.kind === SyntaxKind.InterfaceDeclaration) {
35638
const typeDelta = typeCount - oldTypeCount;
35639
const symbolDelta = symbolCount - oldSymbolCount;
35640
const record = { node, typeDelta, symbolDelta };
0 commit comments