Browse Source

feat(overlays): switch to flow Props

master
Lyubo Marinov 7 years ago
parent
commit
dda4d7a99e
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      react/features/overlay/components/OverlayContainer.js

+ 4
- 5
react/features/overlay/components/OverlayContainer.js View File

@@ -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
 /**

Loading…
Cancel
Save