Skip to content

Commit

Permalink
fix!: isExported should be true for all declarations in file mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jan 10, 2020
1 parent b8bcbdd commit 3be1277
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/converter/factories/declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export function createDeclaration(context: Context, node: ts.Declaration, kind:
let isExported: boolean;
if (kind === ReflectionKind.ExternalModule || kind === ReflectionKind.Global) {
isExported = true;
} else if (container.kind === ReflectionKind.Global) {
// In file mode, everything is exported.
isExported = true;
} else if (container.kindOf([ReflectionKind.Module, ReflectionKind.ExternalModule])) {
const symbol = context.getSymbolAtLocation(node);
if (!symbol) {
Expand Down

0 comments on commit 3be1277

Please sign in to comment.