Skip to content

Commit eb21c09

Browse files
committed
!props -> props.length === 0 (why dont we warn on that ffs)
1 parent 528e863 commit eb21c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7810,7 +7810,7 @@ namespace ts {
78107810
}
78117811
}
78127812
const props = arrayFrom(propSet.values());
7813-
if (!props) {
7813+
if (props.length === 0) {
78147814
return undefined;
78157815
}
78167816
if (props.length === 1 && !(checkFlags & CheckFlags.Partial) && !indexTypes) {

0 commit comments

Comments
 (0)