File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -25512,7 +25512,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
25512
25512
}
25513
25513
25514
25514
function isDiscriminantProperty(type: Type | undefined, name: __String) {
25515
- // function isDiscriminantProperty(type: Type | undefined, name: __String, skipPartial: boolean = false) {
25516
25515
if (type && type.flags & TypeFlags.Union) {
25517
25516
const prop = getUnionOrIntersectionProperty(type as UnionType, name);
25518
25517
if (prop && getCheckFlags(prop) & CheckFlags.SyntheticProperty) {
@@ -25523,7 +25522,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
25523
25522
!isGenericType(getTypeOfSymbol(prop));
25524
25523
}
25525
25524
return !!(prop as TransientSymbol).links.isDiscriminantProperty;
25526
- // return !!(prop as TransientSymbol).links.isDiscriminantProperty && (!skipPartial || !((prop as TransientSymbol).links.checkFlags & CheckFlags.Partial));
25527
25525
}
25528
25526
}
25529
25527
return false;
You can’t perform that action at this time.
0 commit comments