Skip to content

Commit ecae5c8

Browse files
authored
Merge pull request #80 from felfele/master
Changed onLinkPress prop definition to be optional
2 parents 44a7681 + c5c2883 commit ecae5c8

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)