-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmdx.d.ts
44 lines (41 loc) · 822 Bytes
/
mdx.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* Copied from {@link https://web.archive.org/web/20200718173926/https://mdxjs.com/advanced/typescript MDX's TypeScript page}.
*/
declare module "@mdx-js/react" {
import * as React from "react";
type ComponentType =
| "a"
| "blockquote"
| "code"
| "del"
| "em"
| "h1"
| "h2"
| "h3"
| "h4"
| "h5"
| "h6"
| "hr"
| "img"
| "inlineCode"
| "li"
| "ol"
| "p"
| "pre"
| "strong"
| "sup"
| "table"
| "td"
| "thematicBreak"
| "tr"
| "ul"
| "wrapper";
export type Components = {
[key in ComponentType]?: React.ComponentType<any>;
};
export interface MDXProviderProps {
children: React.ReactNode;
components: Components;
}
export class MDXProvider extends React.Component<MDXProviderProps> {}
}