mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Revert change to strict property initialization checks
This commit is contained in:
1 parent
2f9218f346
commit
2256d761a2
1 file changed
+1
-1
@@ -27225,7 +27225,7 @@ namespace ts {
|
||||
reference.expression.parent = reference;
|
||||
reference.parent = constructor;
|
||||
reference.flowNode = constructor.returnFlowNode;
|
||||
const flowType = getFlowTypeOfReference(reference, getOptionalType(propType));
|
||||
const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));
|
||||
return !(getFalsyFlags(flowType) & TypeFlags.Undefined);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user