File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 280
280
- luk-str
281
281
- lukahartwig
282
282
- lukasgerm
283
+ - lukeshiru
283
284
- m0nica
284
285
- m5r
285
286
- machour
Original file line number Diff line number Diff line change @@ -59,17 +59,33 @@ declare module "*.jpg" {
59
59
export default asset ;
60
60
}
61
61
declare module "*.md" {
62
- import type { ComponentType as MdComponentType } from "react" ;
62
+ import type { ComponentType , ReactHTML } from "react" ;
63
63
export let attributes : any ;
64
64
export let filename : string ;
65
- let Component : MdComponentType ;
65
+ let Component : ComponentType <
66
+ Readonly < Record < string , unknown > > & {
67
+ components ?: Readonly <
68
+ Partial <
69
+ Record < keyof ReactHTML | "wrapper" , keyof ReactHTML | ComponentType >
70
+ >
71
+ > ;
72
+ }
73
+ > ;
66
74
export default Component ;
67
75
}
68
76
declare module "*.mdx" {
69
- import type { ComponentType as MdxComponentType } from "react" ;
77
+ import type { ComponentType , ReactHTML } from "react" ;
70
78
export let attributes : any ;
71
79
export let filename : string ;
72
- let Component : MdxComponentType ;
80
+ let Component : ComponentType <
81
+ Readonly < Record < string , unknown > > & {
82
+ components ?: Readonly <
83
+ Partial <
84
+ Record < keyof ReactHTML | "wrapper" , keyof ReactHTML | ComponentType >
85
+ >
86
+ > ;
87
+ }
88
+ > ;
73
89
export default Component ;
74
90
}
75
91
declare module "*.mp3" {
You can’t perform that action at this time.
0 commit comments