Skip to content

Commit e9a578c

Browse files
author
Kanchalai Tanglertsampan
committed
Update comment
1 parent 6dec0f5 commit e9a578c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14179,6 +14179,7 @@ namespace ts {
1417914179
* otherwise return undefined if tag-name of the opening-like element doesn't have call signatures
1418014180
*/
1418114181
function resolveStatelessJsxOpeningLikeElement(openingLikeElement: JsxOpeningLikeElement, elementType: Type, candidatesOutArray: Signature[]): Signature {
14182+
// If this function is called from language service, elementType can be a union type. This is not possible if the function is called from compiler (see: resolveCustomJsxElementAttributesType)
1418214183
if (elementType.flags & TypeFlags.Union) {
1418314184
const types = (elementType as UnionType).types;
1418414185
let result: Signature;

0 commit comments

Comments
 (0)