forked from aeharding/voyager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact.d.ts
33 lines (31 loc) · 1.3 KB
/
react.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
/// <reference types="react/experimental" />
import "@github/markdown-toolbar-element";
type CustomElement<T> = Partial<T & DOMAttributes<T> & { children: unknown }>;
declare global {
namespace JSX {
interface IntrinsicElements {
"markdown-toolbar": CustomElement<
HTMLElementTagNameMap["markdown-toolbar"]
>;
"md-header": CustomElement<HTMLElementTagNameMap["md-header"]>;
"md-bold": CustomElement<HTMLElementTagNameMap["md-bold"]>;
"md-italic": CustomElement<HTMLElementTagNameMap["md-italic"]>;
"md-quote": CustomElement<HTMLElementTagNameMap["md-quote"]>;
"md-code": CustomElement<HTMLElementTagNameMap["md-code"]>;
"md-link": CustomElement<HTMLElementTagNameMap["md-link"]>;
"md-image": CustomElement<HTMLElementTagNameMap["md-image"]>;
"md-unordered-list": CustomElement<
HTMLElementTagNameMap["md-unordered-list"]
>;
"md-ordered-list": CustomElement<
HTMLElementTagNameMap["md-ordered-list"]
>;
"md-task-list": CustomElement<HTMLElementTagNameMap["md-task-list"]>;
"md-mention": CustomElement<HTMLElementTagNameMap["md-mention"]>;
"md-ref": CustomElement<HTMLElementTagNameMap["md-ref"]>;
"md-strikethrough": CustomElement<
HTMLElementTagNameMap["md-strikethrough"]
>;
}
}
}