Files
tsgo/testdata/baselines/reference/submodule/conformance/tsxAttributeInvalidNames.js

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;
}
/>;