mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
17 lines
274 B
TypeScript
17 lines
274 B
TypeScript
//@filename: file.tsx
|
|
//@jsx: preserve
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
test1: { "data-foo"?: string };
|
|
}
|
|
}
|
|
|
|
// Error
|
|
<test1 data-foo={32} />;
|
|
|
|
// OK
|
|
<test1 data-foo={'32'} />;
|
|
<test1 data-bar={'32'} />;
|
|
<test1 data-bar={32} />;
|