question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Types are missing in the Diff2HtmlConfig interface

See original GitHub issue

Running 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
re2005commented, Feb 2, 2020

And I can’t forget to say: very good job with this repo!

1reaction
re2005commented, Feb 2, 2020

You’re totally right. In fact that option is already there.

Thanks a lot man!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found