@discord/markdown-react 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +11 -2
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
|
+
AnyNode,
|
|
3
|
+
Block,
|
|
4
|
+
CodeBlock,
|
|
5
|
+
Emoji,
|
|
6
|
+
Link,
|
|
7
|
+
List,
|
|
8
|
+
Mention,
|
|
9
|
+
Timestamp,
|
|
10
|
+
} from "@discord/markdown-types";
|
|
2
11
|
import type React from "react";
|
|
3
12
|
|
|
4
13
|
type NodeRenderProps<P> = P & { siblings: Node[]; index: number };
|
|
@@ -43,7 +52,7 @@ export type BlockProps = HeadingProps | ListProps | QuoteProps | SmallProps;
|
|
|
43
52
|
// top-level
|
|
44
53
|
export type TextProps = NodeRenderPropsWithChildren;
|
|
45
54
|
export type ParagraphProps = NodeRenderPropsWithChildren;
|
|
46
|
-
export type EmptyProps = NodeRenderProps
|
|
55
|
+
export type EmptyProps = NodeRenderProps<Record<string, never>>;
|
|
47
56
|
export type ListItemProps = NodeRenderPropsWithChildren;
|
|
48
57
|
|
|
49
58
|
export type TopLevelProps =
|