mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Support TypeCastExpressions — `(x: TypeAnnotation)`. This is pretty straightforward, it's semantically identical to a raw identifier. One catch is that our prettier config is hard-coded to use the babel-ts parser, i wasn't sure how to make that dynamic based on the file extension so for now i just ignored .flow.js files in our pretter config.