Lyubomir Marinov 8 years ago
parent
commit
0d97f14a1a

+ 3
- 1
react/features/base/lib-jitsi-meet/_.web.js View File

@@ -1,3 +1,5 @@
1
-/* global JitsiMeetJS */
1
+/* @flow */
2
+
3
+declare var JitsiMeetJS: Object;
2 4
 
3 5
 export default JitsiMeetJS;

+ 12
- 6
react/features/base/lib-jitsi-meet/actions.js View File

@@ -1,3 +1,7 @@
1
+/* @flow */
2
+
3
+import type { Dispatch } from 'redux';
4
+
1 5
 import JitsiMeetJS from './';
2 6
 import {
3 7
     LIB_DISPOSED,
@@ -6,6 +10,8 @@ import {
6 10
     SET_CONFIG
7 11
 } from './actionTypes';
8 12
 
13
+declare var APP: Object;
14
+
9 15
 /**
10 16
  * Disposes lib-jitsi-meet.
11 17
  *
@@ -18,7 +24,7 @@ export function disposeLib() {
18 24
     // there is a big chance it will be async.
19 25
     // TODO Currently, lib-jitsi-meet doesn't have any functionality to
20 26
     // dispose itself.
21
-    return dispatch => {
27
+    return (dispatch: Dispatch<*>) => {
22 28
         dispatch({ type: LIB_DISPOSED });
23 29
 
24 30
         return Promise.resolve();
@@ -31,7 +37,7 @@ export function disposeLib() {
31 37
  * @returns {Function}
32 38
  */
33 39
 export function initLib() {
34
-    return (dispatch, getState) => {
40
+    return (dispatch: Dispatch<*>, getState: Function) => {
35 41
         const config = getState()['features/base/lib-jitsi-meet'].config;
36 42
 
37 43
         if (!config) {
@@ -65,11 +71,11 @@ export function initLib() {
65 71
  * @param {Object} config - Config object accepted by JitsiMeetJS#init()
66 72
  * method.
67 73
  * @returns {{
68
- *      type: SET_CONFIG,
69
- *      config: Object
70
- *  }}
74
+ *     type: SET_CONFIG,
75
+ *     config: Object
76
+ * }}
71 77
  */
72
-export function setConfig(config) {
78
+export function setConfig(config: Object) {
73 79
     return {
74 80
         type: SET_CONFIG,
75 81
         config

Loading…
Cancel
Save