From dda4d7a99e22ced0427cea88041417a1b63b792c Mon Sep 17 00:00:00 2001 From: Lyubo Marinov Date: Wed, 29 Nov 2017 22:13:24 -0600 Subject: [PATCH] feat(overlays): switch to flow Props --- react/features/overlay/components/OverlayContainer.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/react/features/overlay/components/OverlayContainer.js b/react/features/overlay/components/OverlayContainer.js index bb0333032..4fc09bcd9 100644 --- a/react/features/overlay/components/OverlayContainer.js +++ b/react/features/overlay/components/OverlayContainer.js @@ -40,16 +40,15 @@ let _filmstripOnlyOverlays; let _nonFilmstripOnlyOverlays; /** - * OverlayContainer component's property types. + * The type of the React {@link Component} props of {@code OverlayContainer}. */ type Props = { /** - * Type of overlay that should be rendered. - * XXX: We are using 'any' here because overlays are usually wrapped in - * functions, so a 'Node' won't do. + * The React {@link Component} type of overlay to be rendered by the + * associated {@code OverlayContainer}. */ - overlay: any + overlay: ?React$ComponentType<*> } /**