This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +22
-2
lines changed Expand file tree Collapse file tree 5 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
import type { HTMLAttributes , VNode } from "vue"
2
2
import type { ChakraProps } from "@chakra-ui/vue-system"
3
+ import { DefineComponent } from "vue"
4
+ import { ChakraFactoryProps , ComponentWithProps } from "@chakra-ui/vue-system"
3
5
4
6
declare global {
5
- namespace h . JSX {
7
+ namespace JSX {
6
8
interface Element extends VNode { }
7
- interface ElementClass {
9
+ interface ElementClass
10
+ extends DefineComponent < ChakraFactoryProps > ,
11
+ ComponentWithProps < ChakraFactoryProps > {
8
12
$props : { }
9
13
}
10
14
interface ElementAttributesProperty {
@@ -16,3 +20,9 @@ declare global {
16
20
ChakraProps { }
17
21
}
18
22
}
23
+
24
+ declare module "vue" {
25
+ export type JSXComponent < Props = any > =
26
+ | { new ( ) : ComponentPublicInstance < Props > }
27
+ | FunctionalComponent < Props >
28
+ }
Original file line number Diff line number Diff line change 180
180
]
181
181
},
182
182
"devDependencies" : {
183
+ "@types/react" : " file:stub/types__react" ,
183
184
"happy-dom" : " ^6.0.3"
184
185
}
185
186
}
Original file line number Diff line number Diff line change
1
+ // https://github.com/johnsoncodehk/volar/discussions/592
2
+ export { }
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " @types/react" ,
3
+ "version" : " 0.0.0"
4
+ }
Original file line number Diff line number Diff line change 3608
3608
resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb"
3609
3609
integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==
3610
3610
3611
+ "@types/react@file:stub/types__react":
3612
+ version "0.0.0"
3613
+
3611
3614
"@types/recursive-readdir@^2.2.0":
3612
3615
version "2.2.1"
3613
3616
resolved "https://registry.yarnpkg.com/@types/recursive-readdir/-/recursive-readdir-2.2.1.tgz#330f5ec0b73e8aeaf267a6e056884e393f3543a3"
You can’t perform that action at this time.
0 commit comments