mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 22:32:33 -05:00
fix(49392): show optional class methods with enabled strict option (#49768)
This commit is contained in:
@@ -138,7 +138,7 @@ namespace ts.codefix {
|
||||
// If there is more than one overload but no implementation signature
|
||||
// (eg: an abstract method or interface declaration), there is a 1-1
|
||||
// correspondence of declarations and signatures.
|
||||
const signatures = checker.getSignaturesOfType(type, SignatureKind.Call);
|
||||
const signatures = type.isUnion() ? flatMap(type.types, t => t.getCallSignatures()) : type.getCallSignatures();
|
||||
if (!some(signatures)) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user