From 3be1277c4ca37dd8408aa7f232e9656806df0b73 Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Fri, 10 Jan 2020 13:17:33 -0700 Subject: [PATCH] fix!: isExported should be true for all declarations in file mode --- src/lib/converter/factories/declaration.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/converter/factories/declaration.ts b/src/lib/converter/factories/declaration.ts index eef95c024..1b4823275 100644 --- a/src/lib/converter/factories/declaration.ts +++ b/src/lib/converter/factories/declaration.ts @@ -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) {