kpdecker / jsdiff

A javascript text differencing implementation.
BSD 3-Clause "New" or "Revised" License
7.92k stars 496 forks source link

Does this work in TypeScript? #397

Closed rajmondburgaj closed 1 year ago

rajmondburgaj commented 1 year ago

I am trying to use this package in typescript but apparently it needs some types for this to work, but when I try to install them it says.

TS7016: Could not find a declaration file for module 'diff'. 'C:/Users/Rey/source/repos/configet.ui/node_modules/diff/lib/index.js' implicitly has an 'any' type.   Try npm i --save-dev @types/diff if it exists or add a new declaration (.d.ts) file containing declare module 'diff';