TypeScript Version: 2.3.1
Code
import*asReactfrom'react';declarenamespaceJSX{interfaceIntrinsicElements{'heyo': any}}letSomething=React.createClass({render: function(){return(<div><heyo>foo</heyo></div>);}})Expected behavior:
I expect it to compile without error.
Actual behavior:
Running this command:
tsc --jsx react --module "amd" --target es2017 test.tsx
I get this output:
test.tsx(11,22): error TS2339: Property 'heyo' does not exist on type 'JSX.IntrinsicElements'.
test.tsx(11,31): error TS2339: Property 'heyo' does not exist on type 'JSX.IntrinsicElements'.
I got the declare statement from #4648
TypeScript Version: 2.3.1
Code
Expected behavior:
I expect it to compile without error.
Actual behavior:
Running this command:
I get this output:
I got the
declarestatement from #4648