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
// If this is a function or method declaration, get the signature from the @type tag for the sake of optional parameters.
19103
19103
// Exclude contextually-typed kinds because we already apply the @type tag to the context, plus applying it here to the initializer would suppress checks that the two are compatible.
19104
-
if ast.IsFunctionExpressionOrArrowFunction(decl) || ast.IsObjectLiteralMethod(decl) {
19105
-
if sig := c.getSignatureOfFullSignatureType(decl); sig != nil {
19106
-
result = append(result, sig)
19107
-
continue
19108
-
}
19104
+
if sig := c.getSignatureOfFullSignatureType(decl); sig != nil {
19105
+
result = append(result, sig)
19106
+
continue
19109
19107
}
19110
19108
result = append(result, c.getSignatureFromDeclaration(decl))
0 commit comments