mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-13 22:00:59 -05:00
use default type parameter rather than unknown when show quick help (#46792)
* use default type parameter rather than `unknown` when show quick help * prefer default type parameter than constraint for quick info
This commit is contained in:
@@ -30263,7 +30263,7 @@ namespace ts {
|
||||
typeArguments.pop();
|
||||
}
|
||||
while (typeArguments.length < typeParameters.length) {
|
||||
typeArguments.push(getConstraintOfTypeParameter(typeParameters[typeArguments.length]) || getDefaultTypeArgumentType(isJs));
|
||||
typeArguments.push(getDefaultFromTypeParameter(typeParameters[typeArguments.length]) || getConstraintOfTypeParameter(typeParameters[typeArguments.length]) || getDefaultTypeArgumentType(isJs));
|
||||
}
|
||||
return typeArguments;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user