mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-15 07:47:47 +00:00
flow: tame the beast
This commit is contained in:
committed by
Lyubo Marinov
parent
9ac5aafe10
commit
0817482b9c
@@ -1,7 +1,8 @@
|
||||
// @flow
|
||||
|
||||
import React, { Component } from 'react';
|
||||
import React, { Component, type Node } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { type Dispatch } from 'redux';
|
||||
|
||||
import { setReducedUI } from '../actions';
|
||||
import DimensionsDetector from './DimensionsDetector';
|
||||
@@ -20,7 +21,7 @@ type Props = {
|
||||
/**
|
||||
* Any nested components.
|
||||
*/
|
||||
children: React$Node
|
||||
children: Node
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -52,7 +53,7 @@ class ReducedUIDetector extends Component<Props> {
|
||||
* _onDimensionsChanged: Function
|
||||
* }}
|
||||
*/
|
||||
function _mapDispatchToProps(dispatch) {
|
||||
function _mapDispatchToProps(dispatch: Dispatch<*>) {
|
||||
return {
|
||||
/**
|
||||
* Handles the "on dimensions changed" event and dispatches the
|
||||
|
||||
Reference in New Issue
Block a user