Skip to content
Prev Previous commit
Next Next commit
wip - just resolve to any type for now
  • Loading branch information
Kanchalai Tanglertsampan committed Jun 23, 2016
commit 49957a14c80bb2c21ef135ac813a3ddfced8e9d1
5 changes: 5 additions & 0 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9825,6 +9825,11 @@ namespace ts {
}));
}

// TODO (yuisu): we should have str
if (elemType.flags & TypeFlags.String) {
return anyType;
}

// Get the element instance type (the result of newing or invoking this tag)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finish sentence in comment

const elemInstanceType = getJsxElementInstanceType(node, elemType);

Expand Down