@htmlplus/element 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/transformer.js +10 -0
- package/package.json +1 -1
package/dist/transformer.js
CHANGED
|
@@ -757,6 +757,16 @@ const customElement = (options) => {
|
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
|
|
760
|
+
declare module "react" {
|
|
761
|
+
namespace JSX {
|
|
762
|
+
interface IntrinsicElements {
|
|
763
|
+
"${context.elementTagName}": ${context.className}Events & ${context.className}Attributes & {
|
|
764
|
+
[key: string]: any;
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
760
770
|
export type ${context.className}Element = globalThis.${context.elementInterfaceName}
|
|
761
771
|
`, {
|
|
762
772
|
plugins: ['typescript'],
|