mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: We don't currently support object spreads in `ObjectTypeAnnotation`s. This diff adds an explicit error for the case in the parser, so that when people use object spreads in ObjectTypeAnnotations, they get feedback from the linter rule and parser. Previously, the Linter would crash, and the parser would fail, but the error wouldn't be immediately obvious. Changelog: [Internal] Reviewed By: fkgozali Differential Revision: D24543650 fbshipit-source-id: 76f389c72f858ee6281c5aff5ce797f3be685096