You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
The text was updated successfully, but these errors were encountered: