mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
8b3898c164
This PR uses the information from type cast expressions (`as` or `(variable: type)`) to inform type inference. BuildHIR converts the type annotation to our internal type format where possible, falling back to the generic `makeType()`. This is then used in InferTypes to help set the value's type.