feat(overlays): switch to flow Props
This commit is contained in:
parent
19702671f6
commit
dda4d7a99e
|
@ -40,16 +40,15 @@ let _filmstripOnlyOverlays;
|
||||||
let _nonFilmstripOnlyOverlays;
|
let _nonFilmstripOnlyOverlays;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OverlayContainer component's property types.
|
* The type of the React {@link Component} props of {@code OverlayContainer}.
|
||||||
*/
|
*/
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type of overlay that should be rendered.
|
* The React {@link Component} type of overlay to be rendered by the
|
||||||
* XXX: We are using 'any' here because overlays are usually wrapped in
|
* associated {@code OverlayContainer}.
|
||||||
* functions, so a 'Node' won't do.
|
|
||||||
*/
|
*/
|
||||||
overlay: any
|
overlay: ?React$ComponentType<*>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue