stephenscaff / react-animated-cursor

An animated custom cursor React component.
ISC License
273 stars 28 forks source link

TS conversion proposal #29

Closed Thremulant closed 7 months ago

Thremulant commented 1 year ago

Hi Stephen,

First, thank you for the library, I really liked it! I just couldn't implement it because of the missing types.

Second, here's my proposal to change to TS. I'm no TS expert, so bear with me if I made some mistakes. There's always more strict typing that can be implemented.

Key Features

  1. TS components and strong typing (still a WIP)
  2. Rollup configuration to extract the Types
  3. HEX and RGBA accepted in the property color

I tested locally this build (using yalc) and it worked fine on a regular CRA project with no TS and one with TS.

Hope this can help the project, and let me know if there's something that can be improved.

Regards, Daniel

stephenscaff commented 1 year ago

Hi @Thremulant.

Nice! This has been on my todo list as well, so appreciate you diving in. I'm no TS expert myself, but using this lib in enough TS projects that it's an issue.

Will check it out.

stephenscaff commented 1 year ago

@Thremulant My bad bud, been hectic at work. I'll finish reviewing this tomorrow. Looks good.... just wanna test it a bit.

gayuru commented 1 year ago

Hey @stephenscaff how's this going? would like an update please -- @Thremulant solution is looking fine

Thremulant commented 1 year ago

Hey @stephenscaff any news on this one?

Thremulant commented 11 months ago

Hey @stephenscaff is anything I can help you here, to merge this one?

stephenscaff commented 7 months ago

Migrated to TS a while back, closing this one. Thanks for the help.