Skip to content

Commit 3915291

Browse files
authored
Simplified RenderRules type
1 parent daf6462 commit 3915291

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ export type RenderImageFunction = (
3737
defaultImageHandler: string,
3838
) => ReactNode;
3939

40-
export type RenderRules = {
41-
[name: string]: RenderFunction;
42-
} & {
40+
export interface RenderRules {
41+
[name: string]: RenderFunction | undefined;
4342
link?: RenderLinkFunction;
4443
blocklink?: RenderLinkFunction;
4544
image?: RenderImageFunction;

0 commit comments

Comments
 (0)