mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 02:35:48 -05:00
Avoid provide hints for binding patterns (#44961)
* Avoid provide hints for binding patterns * Rename as 56
This commit is contained in:
@@ -121,8 +121,12 @@ namespace ts.InlayHints {
|
||||
}
|
||||
|
||||
function visitVariableLikeDeclaration(decl: VariableDeclaration | PropertyDeclaration) {
|
||||
if (!decl.initializer || isBindingPattern(decl.name)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(decl);
|
||||
if (effectiveTypeAnnotation || !decl.initializer) {
|
||||
if (effectiveTypeAnnotation) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user