mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
436 B
TypeScript
27 lines
436 B
TypeScript
//// [tests/cases/conformance/jsx/tsxAttributeInvalidNames.tsx] ////
|
|
|
|
//// [file.tsx]
|
|
declare namespace JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
test1: { "data-foo"?: string };
|
|
test2: { "data-foo"?: string };
|
|
}
|
|
}
|
|
|
|
// Invalid names
|
|
<test1 32data={32} />;
|
|
<test2 -data={32} />;
|
|
|
|
//// [file.jsx]
|
|
"use strict";
|
|
// Invalid names
|
|
<test1 />;
|
|
32;
|
|
data = { 32: } / > ;
|
|
<test2 /> - data;
|
|
{
|
|
32;
|
|
}
|
|
/>;
|