Skip to content

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

ref(TS) Remove flow comments in TS files (#13258)

Robert Pintilii96b6edccf843
diff --git a/react/features/analytics/actionTypes.ts b/react/features/analytics/actionTypes.ts
index 17e46d84cf..ed04f64028 100644
--- a/react/features/analytics/actionTypes.ts
+++ b/react/features/analytics/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of (redux) action which signals that local media duration has changed.
*
diff --git a/react/features/app/reducers.any.ts b/react/features/app/reducers.any.ts
index 7551c03601..523dc94e11 100644
--- a/react/features/app/reducers.any.ts
+++ b/react/features/app/reducers.any.ts
@@ -1,5 +1,3 @@
-// @flow
-
import '../analytics/reducer';
import '../authentication/reducer';
import '../av-moderation/reducer';
diff --git a/react/features/app/reducers.native.ts b/react/features/app/reducers.native.ts
index d95bab0c67..0ffc5800b7 100644
--- a/react/features/app/reducers.native.ts
+++ b/react/features/app/reducers.native.ts
@@ -1,5 +1,3 @@
-// @flow
-
import '../mobile/audio-mode/reducer';
import '../mobile/background/reducer';
import '../mobile/call-integration/reducer';
diff --git a/react/features/base/audio-only/actionTypes.ts b/react/features/base/audio-only/actionTypes.ts
index 15c5789797..b081ccfac9 100644
--- a/react/features/base/audio-only/actionTypes.ts
+++ b/react/features/base/audio-only/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of (redux) action which sets the audio-only flag for the current
* conference.
diff --git a/react/features/base/conference/functions.ts b/react/features/base/conference/functions.ts
index 89b12b63c8..37dd0515a8 100644
--- a/react/features/base/conference/functions.ts
+++ b/react/features/base/conference/functions.ts
@@ -159,7 +159,6 @@ export function forEachConference(
// Does the value of the base/conference's property look like a
// JitsiConference?
if (v && typeof v === 'object') {
- // $FlowFixMe
const url: URL = v[JITSI_CONFERENCE_URL_KEY];
// XXX The Web version of Jitsi Meet does not utilize
diff --git a/react/features/base/connection/actionTypes.ts b/react/features/base/connection/actionTypes.ts
index 32018d36d4..10ae0667da 100644
--- a/react/features/base/connection/actionTypes.ts
+++ b/react/features/base/connection/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of (redux) action which signals that a connection disconnected.
*
diff --git a/react/features/base/flags/constants.ts b/react/features/base/flags/constants.ts
index 09a0836cbc..906fc4ceeb 100644
--- a/react/features/base/flags/constants.ts
+++ b/react/features/base/flags/constants.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* Flag indicating if add-people functionality should be enabled.
* Default: enabled (true).
diff --git a/react/features/base/i18n/actionTypes.ts b/react/features/base/i18n/actionTypes.ts
index cb0752fb3c..3b0cea382a 100644
--- a/react/features/base/i18n/actionTypes.ts
+++ b/react/features/base/i18n/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of (redux) action which signals that i18next has been initialized.
*/
diff --git a/react/features/base/known-domains/actionTypes.ts b/react/features/base/known-domains/actionTypes.ts
index 5afdcd8b59..87a2d9d723 100644
--- a/react/features/base/known-domains/actionTypes.ts
+++ b/react/features/base/known-domains/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of (redux) action to add known domains to the list of domains known
* to the feature base/known-domains.
diff --git a/react/features/base/lastn/actionTypes.ts b/react/features/base/lastn/actionTypes.ts
index 89235c103e..673a63e0ee 100644
--- a/react/features/base/lastn/actionTypes.ts
+++ b/react/features/base/lastn/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of (redux) action which sets the last-n for the conference.
*
diff --git a/react/features/base/participants/actionTypes.ts b/react/features/base/participants/actionTypes.ts
index 4e13afbc53..50040cf910 100644
--- a/react/features/base/participants/actionTypes.ts
+++ b/react/features/base/participants/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* Create an action for when dominant speaker changes.
*
diff --git a/react/features/base/testing/actions.ts b/react/features/base/testing/actions.ts
index 8a7e8f18b7..45c02a50e5 100644
--- a/react/features/base/testing/actions.ts
+++ b/react/features/base/testing/actions.ts
@@ -1,5 +1,3 @@
-/* @flow */
-
import { SET_CONNECTION_STATE } from './actionTypes';
// eslint-disable-next-line jsdoc/require-description-complete-sentence
diff --git a/react/features/breakout-rooms/actionTypes.ts b/react/features/breakout-rooms/actionTypes.ts
index e10938c05b..b2adac4ee0 100644
--- a/react/features/breakout-rooms/actionTypes.ts
+++ b/react/features/breakout-rooms/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of (redux) action to reset the breakout rooms data.
*/
diff --git a/react/features/calendar-sync/actionTypes.ts b/react/features/calendar-sync/actionTypes.ts
index fd5b78db92..75dbf8e66f 100644
--- a/react/features/calendar-sync/actionTypes.ts
+++ b/react/features/calendar-sync/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* Resets the state of calendar integration so stored events and selected
* calendar type are cleared.
diff --git a/react/features/chat/actionTypes.ts b/react/features/chat/actionTypes.ts
index dbf1eba24f..30cb043c5e 100644
--- a/react/features/chat/actionTypes.ts
+++ b/react/features/chat/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of the action which signals to add a new chat message.
*
diff --git a/react/features/chat/constants.ts b/react/features/chat/constants.ts
index 9570f82aae..afb824f994 100644
--- a/react/features/chat/constants.ts
+++ b/react/features/chat/constants.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The size of the chat.
*/
diff --git a/react/features/deep-linking/actionTypes.ts b/react/features/deep-linking/actionTypes.ts
index 96d924a7cb..0b117acd67 100644
--- a/react/features/deep-linking/actionTypes.ts
+++ b/react/features/deep-linking/actionTypes.ts
@@ -1,5 +1,3 @@
-/* @flow */
-
/**
* The type of the action which signals to open the conference in the desktop
* app.
diff --git a/react/features/dropbox/actionTypes.ts b/react/features/dropbox/actionTypes.ts
index 09fcc9b269..a290d8a5c4 100644
--- a/react/features/dropbox/actionTypes.ts
+++ b/react/features/dropbox/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of (redux) action to update the dropbox access token.
*
diff --git a/react/features/face-landmarks/logger.ts b/react/features/face-landmarks/logger.ts
index d2bec748e7..25522b1400 100644
--- a/react/features/face-landmarks/logger.ts
+++ b/react/features/face-landmarks/logger.ts
@@ -1,5 +1,3 @@
-// @flow
-
import { getLogger } from '../base/logging/functions';
export default getLogger('features/face-landmarks');
diff --git a/react/features/filmstrip/subscriber.web.ts b/react/features/filmstrip/subscriber.web.ts
index 34ccfded27..de45dcb442 100644
--- a/react/features/filmstrip/subscriber.web.ts
+++ b/react/features/filmstrip/subscriber.web.ts
@@ -106,10 +106,8 @@ StateListenerRegistry.register(
const { innerWidth, innerHeight } = window;
if (isChatOpen) {
- // $FlowFixMe
document.body.classList.add('shift-right');
} else {
- // $FlowFixMe
document.body.classList.remove('shift-right');
}
diff --git a/react/features/follow-me/actionTypes.ts b/react/features/follow-me/actionTypes.ts
index 5711fa6ab5..1e30d1aeba 100644
--- a/react/features/follow-me/actionTypes.ts
+++ b/react/features/follow-me/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The id of the Follow Me moderator.
*
diff --git a/react/features/lobby/actionTypes.ts b/react/features/lobby/actionTypes.ts
index accea3198c..a7a209a1af 100644
--- a/react/features/lobby/actionTypes.ts
+++ b/react/features/lobby/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* Action type to signal the arriving or updating of a knocking participant.
*/
diff --git a/react/features/mobile/watchos/actionTypes.ts b/react/features/mobile/watchos/actionTypes.ts
index db92d159cf..4d18277efc 100644
--- a/react/features/mobile/watchos/actionTypes.ts
+++ b/react/features/mobile/watchos/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* See {@link setConferenceTimestamp} for more details.
* {
diff --git a/react/features/notifications/actionTypes.ts b/react/features/notifications/actionTypes.ts
index 88ee14af58..4f49ac15fb 100644
--- a/react/features/notifications/actionTypes.ts
+++ b/react/features/notifications/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of (redux) action which signals that all the stored notifications
* need to be cleared.
diff --git a/react/features/overlay/actionTypes.ts b/react/features/overlay/actionTypes.ts
index b993b18b9a..a2b98538d1 100644
--- a/react/features/overlay/actionTypes.ts
+++ b/react/features/overlay/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of the Redux action which signals that the prompt for media
* permission is visible or not.
diff --git a/react/features/polls/actionTypes.ts b/react/features/polls/actionTypes.ts
index ca9322fe7d..f1661037a6 100644
--- a/react/features/polls/actionTypes.ts
+++ b/react/features/polls/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of the action which signals that a Poll will be changed
*
diff --git a/react/features/power-monitor/actionTypes.ts b/react/features/power-monitor/actionTypes.ts
index a84be780f9..fcf7cfea06 100644
--- a/react/features/power-monitor/actionTypes.ts
+++ b/react/features/power-monitor/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of the Redux action which signals that a suspend was detected.
*
diff --git a/react/features/recent-list/actionTypes.ts b/react/features/recent-list/actionTypes.ts
index daa3bc3aa6..6d02d0403f 100644
--- a/react/features/recent-list/actionTypes.ts
+++ b/react/features/recent-list/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* Action type to signal the deletion of a list entry.
*
diff --git a/react/features/recording/actionTypes.ts b/react/features/recording/actionTypes.ts
index 26beca91ea..71f5b858bb 100644
--- a/react/features/recording/actionTypes.ts
+++ b/react/features/recording/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of Redux action which clears all the data of every sessions.
*
diff --git a/react/features/remote-control/actionTypes.ts b/react/features/remote-control/actionTypes.ts
index 2dccbea98c..4230bc1714 100644
--- a/react/features/remote-control/actionTypes.ts
+++ b/react/features/remote-control/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of (redux) action which signals that the controller is capturing mouse and keyboard events.
*
diff --git a/react/features/screen-share/actionTypes.ts b/react/features/screen-share/actionTypes.ts
index 988b1678ee..9d2f2bd1a6 100644
--- a/react/features/screen-share/actionTypes.ts
+++ b/react/features/screen-share/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* Type of action which sets the current state of screen audio sharing.
*
diff --git a/react/features/screen-share/functions.ts b/react/features/screen-share/functions.ts
index 93235bbdf7..645a370723 100644
--- a/react/features/screen-share/functions.ts
+++ b/react/features/screen-share/functions.ts
@@ -61,6 +61,5 @@ export function isScreenVideoShared(state: IReduxState) {
}
const localVideo = getLocalVideoTrack(tracks);
- // $FlowFixMe - No support for optional chain method calls in flow atm.
return localVideo?.jitsiTrack?.getVideoType() === VIDEO_TYPE.DESKTOP;
}
diff --git a/react/features/screenshot-capture/actionTypes.ts b/react/features/screenshot-capture/actionTypes.ts
index 36951fdd05..fe26b5cc01 100644
--- a/react/features/screenshot-capture/actionTypes.ts
+++ b/react/features/screenshot-capture/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* Redux action type dispatched in order to toggle screenshot captures.
*
diff --git a/react/features/shared-video/actionTypes.ts b/react/features/shared-video/actionTypes.ts
index 511e04fd8a..fcbab71fae 100644
--- a/react/features/shared-video/actionTypes.ts
+++ b/react/features/shared-video/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of the action which signals to update the current known state of the
* shared video.
diff --git a/react/features/speaker-stats/actionTypes.ts b/react/features/speaker-stats/actionTypes.ts
index ae6e48ff56..64aa826ae3 100644
--- a/react/features/speaker-stats/actionTypes.ts
+++ b/react/features/speaker-stats/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* Action type to start search.
*
@@ -32,7 +30,7 @@ export const UPDATE_STATS = 'UPDATE_STATS';
/**
* Action type to update the speaker stats order.
* {
- * type: UPDATE_SORTED_SPEAKER_STATS_IDS
+ * type: UPDATE_SORTED_SPEAKER_STATS_IDS
* }
*/
export const UPDATE_SORTED_SPEAKER_STATS_IDS = 'UPDATE_SORTED_SPEAKER_STATS_IDS'
@@ -58,7 +56,7 @@ export const RESET_SEARCH_CRITERIA = 'RESET_SEARCH_CRITERIA'
/**
* Action type to toggle the face expressions grid.
* {
- * type: TOGGLE_FACE_EXPRESSIONS
+ * type: TOGGLE_FACE_EXPRESSIONS
* }
*/
export const TOGGLE_FACE_EXPRESSIONS = 'SHOW_FACE_EXPRESSIONS';
diff --git a/react/features/speaker-stats/components/timeFunctions.ts b/react/features/speaker-stats/components/timeFunctions.ts
index a6f9338330..c9e01af036 100644
--- a/react/features/speaker-stats/components/timeFunctions.ts
+++ b/react/features/speaker-stats/components/timeFunctions.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* Counts how many whole hours are included in the given time total.
*
diff --git a/react/features/virtual-background/actionTypes.ts b/react/features/virtual-background/actionTypes.ts
index 1b0ff1d1f2..5235aea209 100644
--- a/react/features/virtual-background/actionTypes.ts
+++ b/react/features/virtual-background/actionTypes.ts
@@ -1,5 +1,3 @@
-// @flow
-
/**
* The type of redux action dispatched which represents that the background
* effect is enabled or not.