Skip to content

Commit 041c35b

Browse files
committed
Remove circular dependency
1 parent 0c1b9c8 commit 041c35b

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/lib/converter/converter.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,12 @@ export class Converter extends ChildableComponent<
220220
}
221221

222222
/** @internal */
223-
convertSymbol(context: Context, symbol: ts.Symbol) {
224-
convertSymbol(context, symbol);
223+
convertSymbol(
224+
context: Context,
225+
symbol: ts.Symbol,
226+
exportSymbol?: ts.Symbol
227+
) {
228+
convertSymbol(context, symbol, exportSymbol);
225229
}
226230

227231
/**

src/lib/converter/jsdoc.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
convertParameterNodes,
1919
convertTypeParameterNodes,
2020
} from "./factories/signature";
21-
import { convertSymbol } from "./symbols";
2221

2322
export function convertJsDocAlias(
2423
context: Context,
@@ -39,7 +38,11 @@ export function convertJsDocAlias(
3938
// a type alias with an import type.
4039
const aliasedSymbol = getTypedefReExportTarget(context, declaration);
4140
if (aliasedSymbol) {
42-
convertSymbol(context, aliasedSymbol, exportSymbol ?? symbol);
41+
context.converter.convertSymbol(
42+
context,
43+
aliasedSymbol,
44+
exportSymbol ?? symbol
45+
);
4346
return;
4447
}
4548

0 commit comments

Comments
 (0)