Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/services/symbolDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ namespace ts.SymbolDisplay {
}
}
}
if (symbolFlags & SymbolFlags.Alias) {
// don't use symbolFlags since getAliasedSymbol requires the flag on the symbol itself
if (symbol.flags & SymbolFlags.Alias) {
prefixNextMeaning();
if (!hasAddedSymbolInfo) {
const resolvedSymbol = typeChecker.getAliasedSymbol(symbol);
Expand Down
24 changes: 24 additions & 0 deletions tests/cases/fourslash/quickInfoJSExport.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/// <reference path="fourslash.ts" />

// GH #35347

// @Filename: a.js
// @allowJs: true
//// /**
//// * @enum {string}
//// */
//// const testString = {
//// one: "1",
//// two: "2"
//// };
////
//// export { test/**/String };

verify.quickInfoAt("",
`type testString = string
(alias) type testString = any
(alias) const testString: {
one: string;
two: string;
}
export testString`);