You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/checker.ts
+2-3
Original file line number
Diff line number
Diff line change
@@ -12195,13 +12195,12 @@ namespace ts {
12195
12195
12196
12196
// or this one? getLocalTypeParametersOfClassOrInterfaceOrTypeAlias
12197
12197
function getTypeParametersFromTypeConstructorSymbol(symbol: Symbol) {
12198
+
const type = getDeclaredTypeOfSymbol(getMergedSymbol(symbol)); // this has work even in TypeAlias condition -- it give typeParameters value if there is not.
12198
12199
if (symbol.flags & (SymbolFlags.Class | SymbolFlags.Interface)) {
12199
-
const type = <InterfaceType>getDeclaredTypeOfSymbol(getMergedSymbol(symbol));
0 commit comments