Skip to content

Commit 5a8d335

Browse files
committed
Include type alias and interface declarations
Thanks to @RyanCavanaugh for the suggestion!
1 parent 2373db9 commit 5a8d335

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/checker.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -35632,7 +35632,9 @@ namespace ts {
3563235632

3563335633
// Never report expensive statements in .d.ts files
3563435634
if (!checkingDtsFile) {
35635-
if (node.kind >= SyntaxKind.FirstStatement && node.kind <= SyntaxKind.LastStatement) {
35635+
if (node.kind >= SyntaxKind.FirstStatement && node.kind <= SyntaxKind.LastStatement ||
35636+
node.kind === SyntaxKind.TypeAliasDeclaration ||
35637+
node.kind === SyntaxKind.InterfaceDeclaration) {
3563635638
const typeDelta = typeCount - oldTypeCount;
3563735639
const symbolDelta = symbolCount - oldSymbolCount;
3563835640
const record = { node, typeDelta, symbolDelta };

0 commit comments

Comments
 (0)