Types are missing in the Diff2HtmlConfig interface
See original GitHub issueRunning the latest version.
In your example there are a few optional parameters:
Diff2Html.html(this.diffs, {
drawFileList: true,
matching: 'lines',
outputFormat: 'side-by-side',
});
But the types are missing for these in the interface ‘Diff2HtmlConfig’.
I’ve manually added (fileListToggle and matching) so my typescript doesn’t complain.
fileListToggle?: boolean; matching?: string;
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
diff2html/README.md at master - GitHub
Pretty diff to html javascript library (diff2html) - diff2html/README.md at ... Diff2Html API; Diff2Html Configuration; Diff2Html Browser; Diff2Html NPM ...
Read more >diff2html - npm
diff2html generates pretty HTML diffs from git or unified diff output. NPM. Features. Supports git and unified diffs. Line by line and Side...
Read more >Diff2html diff not loading - Stack Overflow
Now this is showing Files changed (0). The URL I have given is the one given in the demo section of their website...
Read more >diff2html
Each diff provides a comprehensive visualization of the code changes, helping developers identify problems and better understand the changes.
Read more >Diff2html - npm.io
diff2html generates pretty HTML diffs from git or unified diff output. ... bundles/js/diff2html-ui.min.js - includes the wrapper of ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
And I can’t forget to say: very good job with this repo!
You’re totally right. In fact that option is already there.
Thanks a lot man!