We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a32d1 commit 3079c89Copy full SHA for 3079c89
src/lib/converter/symbols.ts
@@ -249,7 +249,9 @@ function convertFunctionOrMethod(
249
?.getDeclarations()
250
?.find(
251
(d) => ts.isClassDeclaration(d) || ts.isInterfaceDeclaration(d)
252
- ) ?? symbol.getDeclarations()?.[0]?.getSourceFile();
+ ) ??
253
+ parentSymbol?.getDeclarations()?.[0]?.getSourceFile() ??
254
+ symbol.getDeclarations()?.[0]?.getSourceFile();
255
assert(locationDeclaration, "Missing declaration context");
256
257
const type = context.checker.getTypeOfSymbolAtLocation(
0 commit comments