Open jho406 opened 2 months ago
This task can be broken down into:
1 - add TypeScript first 2 - then we should be good to work on the other tasks mentioned here
Hi! I prototyped adding Typescript at RailsConf 2024, PR here: https://github.com/thoughtbot/superglue/pull/60
I've mostly been trying to follow this JS -> TS Migration guide -- still new to this!
All of superglue is written in ES6. For developers working with React, typescript has been a valuable tool to have. It would improve the developer experience if superglue was converted to Typescript.
In this story, we should add type annotations to every function in superglue and move from gradual typing to something a bit more strict.
Thoughts
Not all features of superglue can be converted to typescript.
Regardless, typing what we can is still a great step forward.