A statement in `block` that exports by name or by assignment, not by declaring.
(block: SyntaxNode)
| 133 | |
| 134 | /** A statement in `block` that exports by name or by assignment, not by declaring. */ |
| 135 | function hasExportDeclaration(block: SyntaxNode): boolean { |
| 136 | for (const statement of namedChildrenOf(block)) { |
| 137 | if (statement?.type === 'export_statement' && !getChildByField(statement, 'declaration')) return true; |
| 138 | } |
| 139 | return false; |
| 140 | } |
| 141 | |
| 142 | /** A TypeScript declaration file: `.d.ts`, `.d.mts`, `.d.cts`. */ |
| 143 | const DECLARATION_FILE = /\.d\.[cm]?ts$/i; |
no test coverage detected