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
Just writing down my thought process for reference.
Testing Typescript and Flow type both for adding types in Brahmos.
Currently, Brahmos support typescript but only with Babel ecosystem, the main reason behind that we current have babel plugin to transform JSX into tagged template literals.
Current for support of typescript the babel config looks like this:
Plus React type definition (flowtypes / typescript) can be used alongside with Brahmos, as the API for both is same, though you have to point to React types plus you will see React in name rather than Brahmos. Which should be okay for start, until Brahmos publishes it own type definition.
Now coming back to a decision on building Brahmos lib itself with typescript or flow types for static typing.
With typescript the problem is
Brahmos doesn't natively support typescript, but only with babel ecosystem. If Brahmos itself is built with typescript it may raise confusion that it supports typescript natively.
All file name need to be changed to .ts or .tsx .
As currently, the requirement of typescript is just for defining the static type, I am inclining toward flowtype for the statically typing the Brahmos.
I personally don't see a lot of benefit of using typescript right away. But I would keep this discussion open to learn more if typescript is proving better given only the static typing use case.
The text was updated successfully, but these errors were encountered:
Just writing down my thought process for reference.
Testing Typescript and Flow type both for adding types in Brahmos.
Currently, Brahmos support typescript but only with Babel ecosystem, the main reason behind that we current have babel plugin to transform JSX into tagged template literals.
Current for support of typescript the babel config looks like this:
Plus React type definition (flowtypes / typescript) can be used alongside with Brahmos, as the API for both is same, though you have to point to React types plus you will see React in name rather than Brahmos. Which should be okay for start, until Brahmos publishes it own type definition.
Now coming back to a decision on building Brahmos lib itself with typescript or flow types for static typing.
With typescript the problem is
As currently, the requirement of typescript is just for defining the static type, I am inclining toward flowtype for the statically typing the Brahmos.
I personally don't see a lot of benefit of using typescript right away. But I would keep this discussion open to learn more if typescript is proving better given only the static typing use case.
The text was updated successfully, but these errors were encountered: