Skip to content

Commit

Permalink
Remove circular dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Sep 5, 2022
1 parent 0c1b9c8 commit 041c35b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/lib/converter/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,12 @@ export class Converter extends ChildableComponent<
}

/** @internal */
convertSymbol(context: Context, symbol: ts.Symbol) {
convertSymbol(context, symbol);
convertSymbol(
context: Context,
symbol: ts.Symbol,
exportSymbol?: ts.Symbol
) {
convertSymbol(context, symbol, exportSymbol);
}

/**
Expand Down
7 changes: 5 additions & 2 deletions src/lib/converter/jsdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
convertParameterNodes,
convertTypeParameterNodes,
} from "./factories/signature";
import { convertSymbol } from "./symbols";

export function convertJsDocAlias(
context: Context,
Expand All @@ -39,7 +38,11 @@ export function convertJsDocAlias(
// a type alias with an import type.
const aliasedSymbol = getTypedefReExportTarget(context, declaration);
if (aliasedSymbol) {
convertSymbol(context, aliasedSymbol, exportSymbol ?? symbol);
context.converter.convertSymbol(
context,
aliasedSymbol,
exportSymbol ?? symbol
);
return;
}

Expand Down

0 comments on commit 041c35b

Please sign in to comment.