tsparticles / astro

tsParticles Astro official component
MIT License
33 stars 4 forks source link

Type declarations missing #14

Open mauriciabad opened 5 months ago

mauriciabad commented 5 months ago

The package doesn't include any types. (notice the missing TS icon on npm)

Screenshot 2024-01-15 at 4 07 43 AM

I'm getting this error.

Import declaration conflicts with local declaration of 'Particles'.ts(2440)

And the "How to use" example code throws many TypeScript errors.

Import declaration conflicts with local declaration of 'Particles'.ts(2440)

'tsParticles' is declared but its value is never read.ts(6133)

Cannot find module 'tsparticles' or its corresponding type declarations.ts(2307)

Property 'particlesInit' does not exist on type 'Window & typeof globalThis'.ts(2339)

Property 'particlesLoaded' does not exist on type 'Window & typeof globalThis'.ts(2339)

'container' is declared but its value is never read.ts(6133)

And when the code runs, It throws an error and doesn't load the particles.

tsParticles - Error in animation loop TypeError: Cannot read properties of undefined (reading 'circleRange')