Skip to content

Commit ec18bb0

Browse files
committed
Revert "feat: Add disableAliases option (#1576)"
This reverts commit a446431.
1 parent 6d215df commit ec18bb0

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

src/lib/converter/symbols.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export function convertSymbol(
7373
// but aren't aliased symbols because `export *` was used.
7474
const previous = context.project.getReflectionFromSymbol(symbol);
7575
if (
76-
!context.converter.application.options.getValue("disableAliases") &&
7776
previous &&
7877
previous.parent?.kindOf(ReflectionKind.Module | ReflectionKind.Project)
7978
) {
@@ -707,10 +706,7 @@ function convertAlias(
707706
const reflection = context.project.getReflectionFromSymbol(
708707
context.resolveAliasedSymbol(symbol)
709708
);
710-
if (
711-
!reflection ||
712-
context.converter.application.options.getValue("disableAliases")
713-
) {
709+
if (!reflection) {
714710
// We don't have this, convert it.
715711
convertSymbol(
716712
context,

src/lib/utils/options/declaration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export interface TypeDocOptionMap {
4848
excludeNotDocumented: boolean;
4949
excludeInternal: boolean;
5050
disableSources: boolean;
51-
disableAliases: boolean;
5251
includes: string;
5352
media: string;
5453

src/lib/utils/options/sources/typedoc.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
7373
help: "Disables setting the source of a reflection when documenting it.",
7474
type: ParameterType.Boolean,
7575
});
76-
options.addDeclaration({
77-
name: "disableAliases",
78-
help: "Disables creating aliases for shared reflections.",
79-
type: ParameterType.Boolean,
80-
});
8176
options.addDeclaration({
8277
name: "includes",
8378
help: "Specifies the location to look for included documents (use [[include:FILENAME]] in comments).",

0 commit comments

Comments
 (0)