reactsocialnetwork
reactsocialnetwork copied to clipboard
[feature]: Merging project to use TypeScript
Is your feature request related to a problem? Please describe.
A couple of recommendations came through in the psst 4 months to merge this into using TypeScript.
Personally I feel
Describe the solution you would like
We can decide as a community if we need all of the features TypeScript offers to change to TypeScript.
Describe the alternatives you have tried
We are currently using JSX for our components with some .js for our controllers and also prop types. This has been working fihe.
Additional context
We can discuss this new feat here.
Using TypeScript would allow to create interfaces, it's kind of pattern to predefine object properties types. It would throw error if it doesn't fit during development. While components props can be handled by PropTypes, we can use interface multiple times within component (not sure if PropTypes can do that too).
That's example from TypeScript docs. All .js and .jsx files could be transformed into .ts and .tsx without any error because TypeScript is a superset of JavaScript and all JS code run perfectly in .ts files.
It will be something to do in the future once we get enough working. I can do prop types. I really need to sit and learn Typescript.
Sure, if you change your mind I can handle this migration.
Great, good to know. I think its a great idea. Several have mentioned it I think we should to this when the majority of our features are complete and we still have a long way to go. I wanna get dashboards, messaging/chat, groups and friends up and working at least somewhat. We are almost done with Events.