dmsnell / diff-match-patch

Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.
Apache License 2.0
23 stars 5 forks source link

Add types for JavaScript #12

Closed TheSpyder closed 2 months ago

TheSpyder commented 3 months ago

This is a simple translation of the JS to a TypeScript declaration file. It will help TypeScript projects in strict mode to use diff-match-patch without warnings.

TheSpyder commented 2 months ago

@dmsnell will you have a chance to look at this anytime soon? My team has a deadline coming up, I can always copy it into our project if needed (that's a lot less invasive than copying the entire library).

dmsnell commented 2 months ago

Published! https://www.npmjs.com/package/@dmsnell/diff-match-patch