freezeframe.js icon indicating copy to clipboard operation
freezeframe.js copied to clipboard

Does it really support Typescript?

Open JaimeFLandbot opened this issue 2 years ago • 1 comments

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

JaimeFLandbot avatar Oct 20 '23 07:10 JaimeFLandbot

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.

otomad avatar Jan 23 '24 14:01 otomad