mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
13 lines
249 B
TypeScript
13 lines
249 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} />; |