TypeScript/tests/baselines/reference/tsxAttributeInvalidNames.js
Ryan Cavanaugh 25553446ef Misc cleanup
2015-06-22 10:31:00 -07:00

24 lines
387 B
TypeScript

//// [tsxAttributeInvalidNames.tsx]
declare module JSX {
interface Element { }
interface IntrinsicElements {
test1: { "data-foo"?: string };
test2: { "data-foo"?: string };
}
}
// Invalid names
<test1 32data={32} />;
<test2 -data={32} />;
//// [tsxAttributeInvalidNames.jsx]
// Invalid names
<test1 />;
32;
data = { 32: } / > ;
<test2 /> - data;
{
32;
}
/>;;