File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8333,8 +8333,8 @@ namespace ts {
8333
8333
}
8334
8334
// TODO: Given that we allow type parmeters here now, is this `!isGenericMappedType(type)` check really needed?
8335
8335
// There's no reason a `T` should be allowed while a `Readonly<T>` should not.
8336
- return !!(type.flags & (TypeFlags.Object | TypeFlags.NonPrimitive | TypeFlags.Any)) && !isGenericMappedType(type) ||
8337
- !!( type.flags & TypeFlags.Intersection) && every((<IntersectionType>type).types, isValidBaseType);
8336
+ return !!(type.flags & (TypeFlags.Object | TypeFlags.NonPrimitive | TypeFlags.Any) && !isGenericMappedType(type) ||
8337
+ type.flags & TypeFlags.Intersection && !isNeverLikeType(type ) && every((<IntersectionType>type).types, isValidBaseType) );
8338
8338
}
8339
8339
8340
8340
function resolveBaseTypesOfInterface(type: InterfaceType): void {
You can’t perform that action at this time.
0 commit comments