Prozi / detect-collisions

Points, Lines, Boxes, Polygons (also hollow), Ellipses, Circles. RayCasting, offsets, rotation, scaling, bounding box padding, flags for static and ghost/trigger bodies
https://prozi.github.io/detect-collisions/
MIT License
206 stars 22 forks source link

Types: Could not find a declaration file for module 'poly-decomp' #72

Closed ong-appxplore closed 8 months ago

ong-appxplore commented 8 months ago

Hi, I am currently using this module in my project. It is fine when running the project in development with ts-node but when I try to build it with the command tsc, I am getting a number of errors on failing to find the declaration file for poly-decomp

image

I have further check the lib poly-decomp and usage of Polygon, and Point are no longer there after version 0.1.1. I am not entirely sure if this a problem on my ts config or this lib. Can you please advise?

Prozi commented 8 months ago

@ong-appxplore please test your project with detect-collisions@^9.5.0 I switched to poly-decomp-es and fixed export hopefuly this helps

ong-appxplore commented 8 months ago

@Prozi I just tried it and it can build fine now. Thank you so much!

Prozi commented 8 months ago

@ong-appxplore I'm happy to hear that!

thanks for using this library, creating a bug ticket and closing it!