Skip to content

Commit

Permalink
Revert "feat: Add disableAliases option (#1576)"
Browse files Browse the repository at this point in the history
This reverts commit a446431.
  • Loading branch information
Gerrit0 committed Jun 13, 2021
1 parent 6d215df commit ec18bb0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
6 changes: 1 addition & 5 deletions src/lib/converter/symbols.ts
Expand Up @@ -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)
) {
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/lib/utils/options/declaration.ts
Expand Up @@ -48,7 +48,6 @@ export interface TypeDocOptionMap {
excludeNotDocumented: boolean;
excludeInternal: boolean;
disableSources: boolean;
disableAliases: boolean;
includes: string;
media: string;

Expand Down
5 changes: 0 additions & 5 deletions src/lib/utils/options/sources/typedoc.ts
Expand Up @@ -73,11 +73,6 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
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).",
Expand Down

0 comments on commit ec18bb0

Please sign in to comment.