mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 20:25:23 -06:00
Add missing return statements (ugh)
This commit is contained in:
parent
0b366ce751
commit
0b1da02a62
@ -17729,10 +17729,10 @@ namespace ts {
|
||||
return instantiateType(type, mapper);
|
||||
}
|
||||
if (type.flags & TypeFlags.Union) {
|
||||
getUnionType(map((<UnionType>type).types, t => instantiateInstantiableTypes(t, mapper)), UnionReduction.None);
|
||||
return getUnionType(map((<UnionType>type).types, t => instantiateInstantiableTypes(t, mapper)), UnionReduction.None);
|
||||
}
|
||||
if (type.flags & TypeFlags.Intersection) {
|
||||
getIntersectionType(map((<IntersectionType>type).types, t => instantiateInstantiableTypes(t, mapper)));
|
||||
return getIntersectionType(map((<IntersectionType>type).types, t => instantiateInstantiableTypes(t, mapper)));
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user