Pārlūkot izejas kodu

feat(overlays): switch to flow Props

master
Lyubo Marinov 7 gadus atpakaļ
vecāks
revīzija
dda4d7a99e

+ 4
- 5
react/features/overlay/components/OverlayContainer.js Parādīt failu

@@ -40,16 +40,15 @@ let _filmstripOnlyOverlays;
40 40
 let _nonFilmstripOnlyOverlays;
41 41
 
42 42
 /**
43
- * OverlayContainer component's property types.
43
+ * The type of the React {@link Component} props of {@code OverlayContainer}.
44 44
  */
45 45
 type Props = {
46 46
 
47 47
     /**
48
-     * Type of overlay that should be rendered.
49
-     * XXX: We are using 'any' here because overlays are usually wrapped in
50
-     * functions, so a 'Node' won't do.
48
+     * The React {@link Component} type of overlay to be rendered by the
49
+     * associated {@code OverlayContainer}.
51 50
      */
52
-    overlay: any
51
+    overlay: ?React$ComponentType<*>
53 52
 }
54 53
 
55 54
 /**

Notiek ielāde…
Atcelt
Saglabāt