Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

flow

Lyubomir Marinov0d97f14a1a9a
diff --git a/react/features/base/lib-jitsi-meet/_.web.js b/react/features/base/lib-jitsi-meet/_.web.js
index 918f582ddf..9c2ca8a136 100644
--- a/react/features/base/lib-jitsi-meet/_.web.js
+++ b/react/features/base/lib-jitsi-meet/_.web.js
@@ -1,3 +1,5 @@
-/* global JitsiMeetJS */
+/* @flow */
+
+declare var JitsiMeetJS: Object;
export default JitsiMeetJS;
diff --git a/react/features/base/lib-jitsi-meet/actions.js b/react/features/base/lib-jitsi-meet/actions.js
index b1466e742b..8d773da2ca 100644
--- a/react/features/base/lib-jitsi-meet/actions.js
+++ b/react/features/base/lib-jitsi-meet/actions.js
@@ -1,3 +1,7 @@
+/* @flow */
+
+import type { Dispatch } from 'redux';
+
import JitsiMeetJS from './';
import {
LIB_DISPOSED,
@@ -6,6 +10,8 @@ import {
SET_CONFIG
} from './actionTypes';
+declare var APP: Object;
+
/**
* Disposes lib-jitsi-meet.
*
@@ -18,7 +24,7 @@ export function disposeLib() {
// there is a big chance it will be async.
// TODO Currently, lib-jitsi-meet doesn't have any functionality to
// dispose itself.
- return dispatch => {
+ return (dispatch: Dispatch<*>) => {
dispatch({ type: LIB_DISPOSED });
return Promise.resolve();
@@ -31,7 +37,7 @@ export function disposeLib() {
* @returns {Function}
*/
export function initLib() {
- return (dispatch, getState) => {
+ return (dispatch: Dispatch<*>, getState: Function) => {
const config = getState()['features/base/lib-jitsi-meet'].config;
if (!config) {
@@ -65,11 +71,11 @@ export function initLib() {
* @param {Object} config - Config object accepted by JitsiMeetJS#init()
* method.
* @returns {{
- * type: SET_CONFIG,
- * config: Object
- * }}
+ * type: SET_CONFIG,
+ * config: Object
+ * }}
*/
-export function setConfig(config) {
+export function setConfig(config: Object) {
return {
type: SET_CONFIG,
config