TypeScript/tests/cases/conformance/jsx/tsxAttributeInvalidNames.tsx
Ryan Cavanaugh 25553446ef Misc cleanup
2015-06-22 10:31:00 -07:00

13 lines
261 B
TypeScript

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