Added test.

This commit is contained in:
Daniel Rosenwasser
2015-12-23 16:38:07 -08:00
parent 72bb1d3dec
commit 64c96323aa

View File

@@ -0,0 +1,16 @@
// @jsx: preserve
// @declaration: true
namespace JSX {
interface IntrinsicElements {
span: {};
}
}
const FooComponent = (props: { foo: "A" | "B" | "C" }) => <span>{props.foo}</span>;
<FooComponent foo={"A"} />;
<FooComponent foo="A" />;
<FooComponent foo={"f"} />;
<FooComponent foo="f" />;