From 041c35b5e14ad5eb9bca29db68ce638403749cf2 Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Mon, 5 Sep 2022 17:42:55 -0600 Subject: [PATCH] Remove circular dependency --- src/lib/converter/converter.ts | 8 ++++++-- src/lib/converter/jsdoc.ts | 7 +++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/lib/converter/converter.ts b/src/lib/converter/converter.ts index 07465aa84..cc080e247 100644 --- a/src/lib/converter/converter.ts +++ b/src/lib/converter/converter.ts @@ -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); } /** diff --git a/src/lib/converter/jsdoc.ts b/src/lib/converter/jsdoc.ts index f717b330d..c41e8ceec 100644 --- a/src/lib/converter/jsdoc.ts +++ b/src/lib/converter/jsdoc.ts @@ -18,7 +18,6 @@ import { convertParameterNodes, convertTypeParameterNodes, } from "./factories/signature"; -import { convertSymbol } from "./symbols"; export function convertJsDocAlias( context: Context, @@ -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; }