From ec18bb0ee3ab62a693707e9a6ec4cdbc0abd2cec Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Sun, 13 Jun 2021 10:33:14 -0600 Subject: [PATCH] Revert "feat: Add disableAliases option (#1576)" This reverts commit a446431a5233139b8d4daee08ea57fd6cabb9965. --- src/lib/converter/symbols.ts | 6 +----- src/lib/utils/options/declaration.ts | 1 - src/lib/utils/options/sources/typedoc.ts | 5 ----- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lib/converter/symbols.ts b/src/lib/converter/symbols.ts index ada1791c3..be5fa4fb3 100644 --- a/src/lib/converter/symbols.ts +++ b/src/lib/converter/symbols.ts @@ -73,7 +73,6 @@ export function convertSymbol( // but aren't aliased symbols because `export *` was used. const previous = context.project.getReflectionFromSymbol(symbol); if ( - !context.converter.application.options.getValue("disableAliases") && previous && previous.parent?.kindOf(ReflectionKind.Module | ReflectionKind.Project) ) { @@ -707,10 +706,7 @@ function convertAlias( const reflection = context.project.getReflectionFromSymbol( context.resolveAliasedSymbol(symbol) ); - if ( - !reflection || - context.converter.application.options.getValue("disableAliases") - ) { + if (!reflection) { // We don't have this, convert it. convertSymbol( context, diff --git a/src/lib/utils/options/declaration.ts b/src/lib/utils/options/declaration.ts index beea1dd9e..091c53ae0 100644 --- a/src/lib/utils/options/declaration.ts +++ b/src/lib/utils/options/declaration.ts @@ -48,7 +48,6 @@ export interface TypeDocOptionMap { excludeNotDocumented: boolean; excludeInternal: boolean; disableSources: boolean; - disableAliases: boolean; includes: string; media: string; diff --git a/src/lib/utils/options/sources/typedoc.ts b/src/lib/utils/options/sources/typedoc.ts index 74a6f1b06..f7aad3014 100644 --- a/src/lib/utils/options/sources/typedoc.ts +++ b/src/lib/utils/options/sources/typedoc.ts @@ -73,11 +73,6 @@ export function addTypeDocOptions(options: Pick) { help: "Disables setting the source of a reflection when documenting it.", type: ParameterType.Boolean, }); - options.addDeclaration({ - name: "disableAliases", - help: "Disables creating aliases for shared reflections.", - type: ParameterType.Boolean, - }); options.addDeclaration({ name: "includes", help: "Specifies the location to look for included documents (use [[include:FILENAME]] in comments).",