This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ import type { HTMLAttributes , VNode } from "vue"
2
+ import type { ChakraProps } from "@chakra-ui/vue-system"
3
+
4
+ declare global {
5
+ namespace h . JSX {
6
+ interface Element extends VNode { }
7
+ interface ElementClass {
8
+ $props : { }
9
+ }
10
+ interface ElementAttributesProperty {
11
+ $props : { }
12
+ }
13
+
14
+ interface IntrinsicAttributes
15
+ extends Omit < HTMLAttributes , "color" > ,
16
+ ChakraProps { }
17
+ }
18
+ }
Original file line number Diff line number Diff line change @@ -13,6 +13,24 @@ type ComponentsImport = typeof ChakraComponents
13
13
14
14
async function generateComponents ( ) {
15
15
let code = `
16
+ import type { HTMLAttributes, VNode } from "vue";
17
+ import type { ChakraProps } from "@chakra-ui/vue-system";
18
+
19
+ declare global {
20
+ namespace h.JSX {
21
+ interface Element extends VNode {}
22
+ interface ElementClass {
23
+ $props: {}
24
+ }
25
+ interface ElementAttributesProperty {
26
+ $props: {}
27
+ }
28
+
29
+ interface IntrinsicAttributes
30
+ extends Omit<HTMLAttributes, "color">,
31
+ ChakraProps {}
32
+ }
33
+ }
16
34
`
17
35
18
36
for ( const component in ChakraComponents ) {
You can’t perform that action at this time.
0 commit comments