From b5340f9247392fdef65d143ced9b116e4b776b8a Mon Sep 17 00:00:00 2001 From: charburgx Date: Mon, 17 Oct 2022 12:27:01 -0500 Subject: [PATCH] fix: class instances shouldn't go to class definitions --- packages/api/src/localizedTree.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/localizedTree.ts b/packages/api/src/localizedTree.ts index 6d3f8b5..3698b54 100644 --- a/packages/api/src/localizedTree.ts +++ b/packages/api/src/localizedTree.ts @@ -465,7 +465,7 @@ function localizePurpose(purpose: TypePurpose): string { } function getTypeLocations(info: TypeInfo): SourceFileLocation[]|undefined { - const baseLocations = wrapSafe(getLocations)(info.typeSymbolMeta ?? info.aliasSymbolMeta ?? info.symbolMeta) + const baseLocations = wrapSafe(getLocations)(info.aliasSymbolMeta ?? info.symbolMeta ?? info.typeSymbolMeta) if(!baseLocations) { if(info.kind === 'function' && info.signatures.length === 1) {