Skip to content

Commit fe72547

Browse files
committed
Fix dtsBundler emit for namespace declarations
1 parent 56da82b commit fe72547

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/dtsBundler.mjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ function emitAsNamespace(name, parent, moduleSymbol, needExportModifier) {
413413
}
414414

415415
const isInternal = ts.isInternalDeclaration(statement);
416-
verifyMatchingSymbols(statement, isInternal);
416+
if (!ts.isModuleDeclaration(decl)) {
417+
verifyMatchingSymbols(statement, isInternal);
418+
}
417419

418420
if (!isInternal) {
419421
const publicStatement = ts.visitEachChild(statement, node => {

0 commit comments

Comments
 (0)