mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Rename unknownType to errorType in merged code
This commit is contained in:
parent
e22a9d6fc1
commit
86643902b2
@ -10612,7 +10612,7 @@ namespace ts {
|
||||
const targetTypes = (target as IntersectionType).types;
|
||||
const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode);
|
||||
const intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode);
|
||||
if (intrinsicAttributes !== unknownType && intrinsicClassAttributes !== unknownType &&
|
||||
if (intrinsicAttributes !== errorType && intrinsicClassAttributes !== errorType &&
|
||||
(contains(targetTypes, intrinsicAttributes) || contains(targetTypes, intrinsicClassAttributes))) {
|
||||
// do not report top error
|
||||
return result;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user