We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 855bf6f commit 1423960Copy full SHA for 1423960
src/lib/converter/symbols.ts
@@ -177,7 +177,12 @@ function convertNamespace(
177
let exportFlags = ts.SymbolFlags.ModuleMember;
178
179
// This can happen in JS land where "class" functions get tagged as a namespace too
180
- if (symbol.getDeclarations()?.some(ts.isModuleDeclaration) !== true) {
+ if (
181
+ symbol
182
+ .getDeclarations()
183
+ ?.some((d) => ts.isModuleDeclaration(d) || ts.isSourceFile(d)) !==
184
+ true
185
+ ) {
186
exportFlags = ts.SymbolFlags.ClassMember;
187
188
if (hasAnyFlag(symbol.flags, ts.SymbolFlags.Class)) {
0 commit comments