From c6fb74391027510d43db2d59d9d2a9c044dc6fc4 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Thu, 25 Jul 2019 09:13:45 -0700 Subject: [PATCH] Flow type cleanup --- src/types.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/types.js b/src/types.js index f6ac70cee6..a999978492 100644 --- a/src/types.js +++ b/src/types.js @@ -10,6 +10,10 @@ export type Wall = {| // The values below are referenced by ComponentFilters (which are saved via localStorage). // Do not change them or it will break previously saved user customizations. // If new element types are added, use new numbers rather than re-ordering existing ones. +// +// Changing these types is also a backwards breaking change for the standalone shell, +// since the frontend and backend must share the same values- +// and the backend is embedded in certain environments (like React Native). export const ElementTypeClass = 1; export const ElementTypeContext = 2; export const ElementTypeFunction = 5; @@ -24,7 +28,7 @@ export const ElementTypeSuspense = 12; // Different types of elements displayed in the Elements tree. // These types may be used to visually distinguish types, // or to enable/disable certain functionality. -export type ElementType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; +export type ElementType = 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; // WARNING // The values below are referenced by ComponentFilters (which are saved via localStorage).