mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Remove whitespace
This commit is contained in:
1 parent
9c3c2adfb0
commit
a5d6be150b
1 file changed
+1
-1
@@ -12725,7 +12725,7 @@ namespace ts {
|
||||
function narrowByInKeyword(type: Type, literal: LiteralExpression, assumeTrue: boolean) {
|
||||
if ((type.flags & (TypeFlags.Union | TypeFlags.Object)) || (type.flags & TypeFlags.TypeParameter && (type as TypeParameter).isThisType)) {
|
||||
const propName = literal.text;
|
||||
return filterType(type, t => !!getPropertyOfType(t, propName) === assumeTrue);
|
||||
return filterType(type, t => !!getPropertyOfType(t, propName) === assumeTrue);
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user