ctrl-freaks / freezeframe.js

freezeframe.js is a library that pauses animated .gifs and enables them to animate on mouse hover / mouse click / touch event, or with trigger / release functions.
http://ctrl-freaks.github.io/freezeframe.js/
MIT License
1.41k stars 110 forks source link

Does it really support Typescript? #156

Open JaimeFLandbot opened 11 months ago

JaimeFLandbot commented 11 months ago

Your readme says so, but after installing your package, it complains about not founding types definition.

Captura de pantalla 2023-10-20 a las 9 45 06

Obviously trying to install @types\react-freezeframe failed. And also de node-modules does not have any d.ts file

image

I'm using latest version: 5.0.2

otomad commented 7 months ago

Yeah, it is forget to add "declaration": true in react-freezeframe / tsconfig.json so the package doesn't provide the .d.ts file.

In the freezeframe package, it even set to false! https://github.com/ctrl-freaks/freezeframe.js/blob/ee166f7ede0167d305e3dad855d5d03ccddcf63f/tsconfig.json#L11

Hope to change it to true (including all packages) so that to use .d.ts file.