@samitouri / QOS-React-2 / commits / c6fb743910

Flow type cleanup

Brian Vaughn committed Jul 25, 2019 at 09:13 UTC c6fb74391027510d43db2d59d9d2a9c044dc6fc4
1 file changed +5 -1
src/types.js
+5 -1
@@ -10,6 +10,10 @@ export type Wall = {|
10 // The values below are referenced by ComponentFilters (which are saved via localStorage).
11 // Do not change them or it will break previously saved user customizations.
12 // If new element types are added, use new numbers rather than re-ordering existing ones.
13 +//
14 +// Changing these types is also a backwards breaking change for the standalone shell,
15 +// since the frontend and backend must share the same values-
16 +// and the backend is embedded in certain environments (like React Native).
17 export const ElementTypeClass = 1;
18 export const ElementTypeContext = 2;
19 export const ElementTypeFunction = 5;
@@ -24,7 +28,7 @@ export const ElementTypeSuspense = 12;
28 // Different types of elements displayed in the Elements tree.
29 // These types may be used to visually distinguish types,
30 // or to enable/disable certain functionality.
27 -export type ElementType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
31 +export type ElementType = 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
32
33 // WARNING
34 // The values below are referenced by ComponentFilters (which are saved via localStorage).