Skip to content

Commit c5c2883

Browse files
authored
Changed onLinkPress to be optional
1 parent a997c5e commit c5c2883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type RenderLinkFunction = (
2424
children: ReactNode[],
2525
parentNodes: ASTNode[],
2626
styles: any,
27-
onLinkPress: (url: string) => boolean,
27+
onLinkPress?: (url: string) => boolean,
2828
) => ReactNode;
2929

3030
export type RenderImageFunction = (
@@ -90,7 +90,7 @@ export interface MarkdownProps {
9090
markdownit?: MarkdownIt;
9191
mergeStyle?: boolean;
9292
debugPrintTree?: boolean;
93-
onLinkPress: (url: string) => boolean;
93+
onLinkPress?: (url: string) => boolean;
9494
}
9595

9696
type MarkdownStatic = React.ComponentType<MarkdownProps>;

0 commit comments

Comments
 (0)