Skip to content

Commit

Permalink
fix(api): change renderContent function signature
Browse files Browse the repository at this point in the history
The first argument may be undefined.
  • Loading branch information
erykpiast committed Jul 2, 2020
1 parent bfc2604 commit f5e00c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReactDiffViewer.re
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ external make:
~disableWordDiff: bool=?,
~compareMethod: string=?,
~hideLineNumbers: bool=?,
~renderContent: (string => React.element)=?,
~renderContent: (option(string) => React.element)=?,
~onLineNumberClick: (string => unit)=?,
~highlightLines: array(string)=?,
~showDiffOnly: bool=?,
Expand Down

0 comments on commit f5e00c3

Please sign in to comment.