Skip to content

Commit 8ad0e50

Browse files
committed
Fix up names of exports
1 parent 59c6123 commit 8ad0e50

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎apps/api-extractor/src/generators/DtsGenerator.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export default class DtsGenerator {
265265
case ts.SyntaxKind.ClassKeyword:
266266
case ts.SyntaxKind.EnumKeyword:
267267
case ts.SyntaxKind.NamespaceKeyword:
268+
case ts.SyntaxKind.ModuleKeyword:
268269
case ts.SyntaxKind.TypeKeyword:
269270
args.prefix = 'declare ' + args.prefix;
270271
if (args.context.entry.exported) {
@@ -298,6 +299,12 @@ export default class DtsGenerator {
298299
switch (args.parentKind) {
299300
case ts.SyntaxKind.ExpressionWithTypeArguments:
300301
case ts.SyntaxKind.TypeReference:
302+
303+
case ts.SyntaxKind.ClassDeclaration:
304+
case ts.SyntaxKind.InterfaceDeclaration:
305+
case ts.SyntaxKind.EnumDeclaration:
306+
case ts.SyntaxKind.TypeAliasDeclaration:
307+
case ts.SyntaxKind.ModuleDeclaration: // (namespaces are a type of module declaration)
301308
{
302309
const symbol: ts.Symbol = this._typeChecker.getSymbolAtLocation(args.span.node);
303310
if (!symbol) {

0 commit comments

Comments
 (0)