tholman / cursor-effects

Old-school cursor effects for your browser built with modern JavaScript
https://tholman.com/cursor-effects
3.35k stars 246 forks source link

Add TypeScript declarations #69

Closed skgrush closed 7 months ago

skgrush commented 7 months ago

Adds TypeScript declarations.

Even if someone isn't a TypeScript user, I think these can be handy self-documentation of options for each function.

I'm open to any changes if you'd prefer a different format or style. Alternatively I can push these to the @types repo, but I do find many developers like seeing the types in the repo.

Use in an IDE: image

image image
tholman commented 7 months ago

Great stuff! Thanks for the addition + extra thanks for clean PR + images 🙏