Skip to content

Commit 1423960

Browse files
committed
fix: Missing exported members in file-as-namespace reflection
Resolves #1493
1 parent 855bf6f commit 1423960

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/converter/symbols.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,12 @@ function convertNamespace(
177177
let exportFlags = ts.SymbolFlags.ModuleMember;
178178

179179
// This can happen in JS land where "class" functions get tagged as a namespace too
180-
if (symbol.getDeclarations()?.some(ts.isModuleDeclaration) !== true) {
180+
if (
181+
symbol
182+
.getDeclarations()
183+
?.some((d) => ts.isModuleDeclaration(d) || ts.isSourceFile(d)) !==
184+
true
185+
) {
181186
exportFlags = ts.SymbolFlags.ClassMember;
182187

183188
if (hasAnyFlag(symbol.flags, ts.SymbolFlags.Class)) {

0 commit comments

Comments
 (0)