TypeScript/tests/cases/conformance/jsx/tsxAttributeInvalidNames.tsx

13 lines
261 B
TypeScript
Raw Normal View History

2015-06-18 23:03:43 +02:00
//@filename: file.tsx
//@jsx: preserve
declare module JSX {
interface Element { }
interface IntrinsicElements {
test1: { "data-foo"?: string };
2015-06-22 19:31:00 +02:00
test2: { "data-foo"?: string };
2015-06-18 23:03:43 +02:00
}
}
// Invalid names
<test1 32data={32} />;
2015-06-22 19:31:00 +02:00
<test2 -data={32} />;