Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
ref(TS) Improve TS (#13282)
Robert Pintiliia22db037c7db
diff --git a/react/features/app/actions.native.ts b/react/features/app/actions.native.tsindex e85cd05f9c..404a05be82 100644--- a/react/features/app/actions.native.ts+++ b/react/features/app/actions.native.ts@@ -1,4 +1,3 @@-/* eslint-disable lines-around-comment */import { setRoom } from '../base/conference/actions';import {configWillLoad,@@ -20,14 +19,11 @@ import {parseURIString,toURLString} from '../base/util/uri';-// @ts-ignoreimport { isPrejoinPageEnabled } from '../mobile/navigation/functions';import {goBackToRoot,navigateRoot- // @ts-ignore} from '../mobile/navigation/rootNavigationContainerRef';-// @ts-ignoreimport { screen } from '../mobile/navigation/routes';import { clearNotifications } from '../notifications/actions';@@ -143,7 +139,6 @@ export function appNavigate(uri?: string, options: IReloadNowOptions = {}) {dispatch(createDesiredLocalTracks());dispatch(clearNotifications());- // @ts-ignoreconst { hidePrejoin } = options;if (!hidePrejoin && isPrejoinPageEnabled(getState())) {diff --git a/react/features/app/getRouteToRender.web.ts b/react/features/app/getRouteToRender.web.tsindex 932ac1ab44..b394895bd5 100644--- a/react/features/app/getRouteToRender.web.ts+++ b/react/features/app/getRouteToRender.web.ts@@ -5,8 +5,6 @@ import { IStateful } from '../base/app/types';import { isRoomValid } from '../base/conference/functions';import { isSupportedBrowser } from '../base/environment/environment';import { toState } from '../base/redux/functions';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport Conference from '../conference/components/web/Conference';import { getDeepLinkingPage } from '../deep-linking/functions';import UnsupportedDesktopBrowser from '../unsupported-browser/components/UnsupportedDesktopBrowser';diff --git a/react/features/authentication/actions.native.ts b/react/features/authentication/actions.native.tsindex 1c61f7187e..4890a3e9fc 100644--- a/react/features/authentication/actions.native.ts+++ b/react/features/authentication/actions.native.ts@@ -27,13 +27,13 @@ export function cancelLogin() {// a reaction to CONNECTION_FAILED). Since the// app/user is going to navigate to WelcomePage, the SDK// clients/consumers need an event.- const { error, passwordRequired }+ const { error = { recoverable: undefined }, passwordRequired }= getState()['features/base/connection'];passwordRequired&& dispatch(connectionFailed(- passwordRequired, // @ts-ignore+ passwordRequired,set(error, 'recoverable', false) as any));};}diff --git a/react/features/authentication/components/index.native.ts b/react/features/authentication/components/index.native.tsindex 4457a24a5d..12ba899149 100644--- a/react/features/authentication/components/index.native.ts+++ b/react/features/authentication/components/index.native.ts@@ -1,4 +1,2 @@export { default as LoginDialog } from './native/LoginDialog';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreexport { default as WaitForOwnerDialog } from './native/WaitForOwnerDialog';diff --git a/react/features/authentication/middleware.native.ts b/react/features/authentication/middleware.native.tsindex 8c853e3cf8..6616fd2018 100644--- a/react/features/authentication/middleware.native.ts+++ b/react/features/authentication/middleware.native.ts@@ -24,7 +24,7 @@ import {openLoginDialog,openWaitForOwnerDialog,stopWaitForOwner,- waitForOwner } from './actions.native'; // @ts-ignore+ waitForOwner } from './actions.native';import { LoginDialog, WaitForOwnerDialog } from './components';/**diff --git a/react/features/base/config/actions.ts b/react/features/base/config/actions.tsindex 448d1f0dc9..59020bb0ec 100644--- a/react/features/base/config/actions.ts+++ b/react/features/base/config/actions.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport { jitsiLocalStorage } from '@jitsi/js-utils';import { IStore } from '../../app/types';diff --git a/react/features/base/config/functions.any.ts b/react/features/base/config/functions.any.tsindex b33a71825b..1062bc5268 100644--- a/react/features/base/config/functions.any.ts+++ b/react/features/base/config/functions.any.ts@@ -1,7 +1,7 @@-// @ts-ignore+// @ts-expect-errorimport Bourne from '@hapi/bourne';// eslint-disable-next-line lines-around-comment-// @ts-ignore+// @ts-expect-errorimport { jitsiLocalStorage } from '@jitsi/js-utils';import _ from 'lodash';diff --git a/react/features/base/dialog/components/native/BottomSheet.tsx b/react/features/base/dialog/components/native/BottomSheet.tsxindex be93461ea3..f4d15ef07d 100644--- a/react/features/base/dialog/components/native/BottomSheet.tsx+++ b/react/features/base/dialog/components/native/BottomSheet.tsx@@ -109,9 +109,7 @@ class BottomSheet extends PureComponent<Props> {} = this.props;return (- <SlidingView // @ts-ignore- accessibilityRole = 'menu'- accessibilityViewIsModal = { true }+ <SlidingViewonHide = { this._onCancel }position = 'bottom'show = { Boolean(showSlidingView) }>diff --git a/react/features/base/dialog/components/native/PageReloadDialog.tsx b/react/features/base/dialog/components/native/PageReloadDialog.tsxindex 793c7563f9..57baab4637 100644--- a/react/features/base/dialog/components/native/PageReloadDialog.tsx+++ b/react/features/base/dialog/components/native/PageReloadDialog.tsx@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport { randomInt } from '@jitsi/js-utils/random';import React, { Component } from 'react';import { WithTranslation } from 'react-i18next';@@ -11,7 +11,6 @@ import { isFatalJitsiConnectionError } from '../../../lib-jitsi-meet/functions.nimport { hideDialog } from '../../actions';import logger from '../../logger';-// @ts-ignoreimport ConfirmDialog from './ConfirmDialog';@@ -39,9 +38,7 @@ interface IPageReloadDialogState {* Shows a warning message and counts down towards the re-load.*/class PageReloadDialog extends Component<IPageReloadDialogProps, IPageReloadDialogState> {-- // @ts-ignore- _interval: IntervalID;+ _interval?: number;_timeoutSeconds: number;/**@@ -105,7 +102,7 @@ class PageReloadDialog extends Component<IPageReloadDialogProps, IPageReloadDial_onCancel() {const { dispatch } = this.props;- clearInterval(this._interval);+ clearInterval(this._interval ?? 0);dispatch(appNavigate(undefined));return true;@@ -145,7 +142,7 @@ class PageReloadDialog extends Component<IPageReloadDialogProps, IPageReloadDial_onReloadNow() {const { dispatch } = this.props;- clearInterval(this._interval);+ clearInterval(this._interval ?? 0);dispatch(reloadNow());return true;@@ -200,8 +197,6 @@ function mapStateToProps(state: IReduxState) {const { fatalError } = state['features/overlay'];const fatalConnectionError-- // @ts-ignore= connectionError && isFatalJitsiConnectionError(connectionError);const fatalConfigError = fatalError === configError;diff --git a/react/features/base/jitsi-local-storage/setup.web.ts b/react/features/base/jitsi-local-storage/setup.web.tsindex bab4a1d8af..93e6e2d315 100644--- a/react/features/base/jitsi-local-storage/setup.web.ts+++ b/react/features/base/jitsi-local-storage/setup.web.ts@@ -1,7 +1,7 @@-// @ts-ignore+// @ts-expect-errorimport Bourne from '@hapi/bourne';// eslint-disable-next-line lines-around-comment-// @ts-ignore+// @ts-expect-errorimport { jitsiLocalStorage } from '@jitsi/js-utils/jitsi-local-storage';import { browser } from '../lib-jitsi-meet';diff --git a/react/features/base/jwt/functions.ts b/react/features/base/jwt/functions.tsindex 57566d1208..34313ad678 100644--- a/react/features/base/jwt/functions.ts+++ b/react/features/base/jwt/functions.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport jwtDecode from 'jwt-decode';import { IReduxState } from '../../app/types';diff --git a/react/features/base/jwt/middleware.ts b/react/features/base/jwt/middleware.tsindex dec41abaa9..f722205961 100644--- a/react/features/base/jwt/middleware.ts+++ b/react/features/base/jwt/middleware.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport jwtDecode from 'jwt-decode';import { AnyAction } from 'redux';diff --git a/react/features/base/lib-jitsi-meet/actions.ts b/react/features/base/lib-jitsi-meet/actions.tsindex a994652c15..bf5cac9319 100644--- a/react/features/base/lib-jitsi-meet/actions.ts+++ b/react/features/base/lib-jitsi-meet/actions.ts@@ -1,10 +1,9 @@-// @ts-ignore+// @ts-expect-errorimport { jitsiLocalStorage } from '@jitsi/js-utils';import { IStore } from '../../app/types';import { isOnline } from '../net-info/selectors';-// @ts-ignoreimport JitsiMeetJS from './_';import {LIB_DID_DISPOSE,diff --git a/react/features/base/lib-jitsi-meet/functions.any.ts b/react/features/base/lib-jitsi-meet/functions.any.tsindex 275d18b030..882be13d11 100644--- a/react/features/base/lib-jitsi-meet/functions.any.ts+++ b/react/features/base/lib-jitsi-meet/functions.any.ts@@ -1,4 +1,5 @@import { IStateful } from '../app/types';+import { ConnectionFailedError } from '../connection/actions.any';import { toState } from '../redux/functions';// @ts-ignore@@ -91,7 +92,7 @@ export function isFatalJitsiConferenceError(error: Error | string) {* indicates a fatal {@code JitsiConnection} error, {@code true}; otherwise,* {@code false}.*/-export function isFatalJitsiConnectionError(error: Error | string) {+export function isFatalJitsiConnectionError(error: Error | string | ConnectionFailedError) {if (typeof error !== 'string') {error = error.name; // eslint-disable-line no-param-reassign}diff --git a/react/features/base/lib-jitsi-meet/functions.native.ts b/react/features/base/lib-jitsi-meet/functions.native.tsindex 1bfc6d4c54..1cbb1e6b2a 100644--- a/react/features/base/lib-jitsi-meet/functions.native.ts+++ b/react/features/base/lib-jitsi-meet/functions.native.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport Bourne from '@hapi/bourne';import { NativeModules } from 'react-native';diff --git a/react/features/base/lib-jitsi-meet/index.ts b/react/features/base/lib-jitsi-meet/index.tsindex 136b4f7d41..3b54d1ff7b 100644--- a/react/features/base/lib-jitsi-meet/index.ts+++ b/react/features/base/lib-jitsi-meet/index.ts@@ -1,6 +1,5 @@// Re-export JitsiMeetJS from the library lib-jitsi-meet to (the other features// of) the project jitsi-meet.-// @ts-ignoreimport JitsiMeetJS from './_';export { JitsiMeetJS as default };diff --git a/react/features/base/lib-jitsi-meet/middleware.ts b/react/features/base/lib-jitsi-meet/middleware.tsindex 1864f7d75f..397db6da7b 100644--- a/react/features/base/lib-jitsi-meet/middleware.ts+++ b/react/features/base/lib-jitsi-meet/middleware.ts@@ -6,7 +6,6 @@ import { SET_NETWORK_INFO } from '../net-info/actionTypes';import { PARTICIPANT_LEFT } from '../participants/actionTypes';import MiddlewareRegistry from '../redux/MiddlewareRegistry';-// @ts-ignoreimport JitsiMeetJS from './_';import { LIB_WILL_INIT } from './actionTypes';import { disposeLib, initLib } from './actions';diff --git a/react/features/base/logging/LogTransport.native.ts b/react/features/base/logging/LogTransport.native.tsindex 4bcb7ef55e..ba4319fbe0 100644--- a/react/features/base/logging/LogTransport.native.ts+++ b/react/features/base/logging/LogTransport.native.ts@@ -1,6 +1,6 @@import { NativeModules } from 'react-native';// eslint-disable-next-line lines-around-comment-// @ts-ignore+// @ts-expect-errorimport { format } from 'util';// Some code adapted from https://github.com/houserater/react-native-lumberjackdiff --git a/react/features/base/logging/functions.ts b/react/features/base/logging/functions.tsindex 73d4856664..99a640806e 100644--- a/react/features/base/logging/functions.ts+++ b/react/features/base/logging/functions.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport Logger, { getLogger as _getLogger } from '@jitsi/logger';import _ from 'lodash';diff --git a/react/features/base/logging/middleware.ts b/react/features/base/logging/middleware.tsindex 66d9886d20..641ec7bea2 100644--- a/react/features/base/logging/middleware.ts+++ b/react/features/base/logging/middleware.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport Logger from '@jitsi/logger';import { IStore } from '../../app/types';diff --git a/react/features/base/media/components/index.native.ts b/react/features/base/media/components/index.native.tsindex 765ce8c57a..23172610fb 100644--- a/react/features/base/media/components/index.native.ts+++ b/react/features/base/media/components/index.native.ts@@ -1,5 +1,2 @@-// @ts-ignoreexport { default as Audio } from './native/Audio';--// @ts-ignoreexport { default as Video } from './native/Video';diff --git a/react/features/base/media/components/native/VideoTransform.tsx b/react/features/base/media/components/native/VideoTransform.tsxindex c662122965..d8fedcb45f 100644--- a/react/features/base/media/components/native/VideoTransform.tsx+++ b/react/features/base/media/components/native/VideoTransform.tsx@@ -7,7 +7,6 @@ import { IReduxState, IStore } from '../../../../app/types';import { ASPECT_RATIO_WIDE } from '../../../responsive-ui/constants';import { storeVideoTransform } from '../../actions';-// @ts-ignoreimport styles from './styles';@@ -125,12 +124,12 @@ class VideoTransform extends Component<IProps, IState> {/*** The gesture handler object.*/- gestureHandlers: Object;+ gestureHandlers: any;/*** The initial distance of the fingers on pinch start.*/- initialDistance: number;+ initialDistance?: number;/*** The initial position of the finger on touch start.@@ -234,8 +233,6 @@ class VideoTransform extends Component<IProps, IState> {videoTransformedViewContainerStyles,style] }-- // @ts-ignore{ ...this.gestureHandlers.panHandlers }><SafeAreaViewedges = { [ 'bottom', 'left' ] }@@ -489,7 +486,7 @@ class VideoTransform extends Component<IProps, IState> {* @param {?Object | number} value - The value of the gesture, if any.* @returns {void}*/- _onGesture(type: string, value: any) {+ _onGesture(type: string, value?: any) {let transform;switch (type) {@@ -600,7 +597,7 @@ class VideoTransform extends Component<IProps, IState> {this._onGesture('scale', scale);}} else if (gestureState.numberActiveTouches === 1- && isNaN(this.initialDistance)+ && isNaN(this.initialDistance ?? 0)&& this._didMove(gestureState)) {// this is a move eventconst position = this._getTouchPosition(evt);@@ -623,11 +620,9 @@ class VideoTransform extends Component<IProps, IState> {*/_onPanResponderRelease() {if (this.lastTap && Date.now() - this.lastTap < TAP_TIMEOUT_MS) {- // @ts-ignorethis._onGesture('press');}- // @ts-ignoredelete this.initialDistance;this.initialPosition = {x: 0,diff --git a/react/features/base/net-info/NetworkInfoService.native.ts b/react/features/base/net-info/NetworkInfoService.native.tsindex bf51059edb..8e296570c3 100644--- a/react/features/base/net-info/NetworkInfoService.native.ts+++ b/react/features/base/net-info/NetworkInfoService.native.ts@@ -1,7 +1,7 @@import NetInfo from '@react-native-community/netinfo';import type { NetInfoState, NetInfoSubscription } from '@react-native-community/netinfo';// eslint-disable-next-line lines-around-comment-// @ts-ignore+// @ts-expect-errorimport EventEmitter from 'events';import { ONLINE_STATE_CHANGED_EVENT } from './events';@@ -15,7 +15,7 @@ export default class NetworkInfoService extends EventEmitter {/*** Stores the native subscription for future cleanup.*/- _subscription: NetInfoSubscription;+ _subscription?: NetInfoSubscription;/*** Converts library's structure to {@link NetworkInfo} used by jitsi-meet.@@ -26,10 +26,8 @@ export default class NetworkInfoService extends EventEmitter {*/static _convertNetInfoState(netInfoState: NetInfoState): NetworkInfo {return {- // @ts-ignore- isOnline: netInfoState.isInternetReachable,+ isOnline: Boolean(netInfoState.isInternetReachable),- // @ts-ignoredetails: netInfoState.details,networkType: netInfoState.type};@@ -51,8 +49,7 @@ export default class NetworkInfoService extends EventEmitter {*/start() {this._subscription = NetInfo.addEventListener(netInfoState => {- // @ts-ignore- this.emit(ONLINE_STATE_CHANGED_EVENT, NetworkInfoService._convertNetInfoState(netInfoState));+ super.emit(ONLINE_STATE_CHANGED_EVENT, NetworkInfoService._convertNetInfoState(netInfoState));});}@@ -64,8 +61,6 @@ export default class NetworkInfoService extends EventEmitter {stop() {if (this._subscription) {this._subscription();-- // @ts-ignorethis._subscription = undefined;}}diff --git a/react/features/base/net-info/types.ts b/react/features/base/net-info/types.tsindex aab4eb8d47..9f80a8e5ea 100644--- a/react/features/base/net-info/types.ts+++ b/react/features/base/net-info/types.ts@@ -16,13 +16,13 @@ export type NetworkInfo = {* If {@link networkType} is {@link NetInfoStateType.cellular} then it may provide the info about the type of* cellular network.*/- cellularGeneration?: NetInfoCellularGeneration;+ cellularGeneration?: NetInfoCellularGeneration | null;/*** Indicates whether or not the connection is expensive.*/isConnectionExpensive?: boolean;- };+ } | null;/*** Tells whether or not the internet is reachable.diff --git a/react/features/base/participants/functions.ts b/react/features/base/participants/functions.tsindex 2c4bb2d6d9..dca4dcd1cd 100644--- a/react/features/base/participants/functions.ts+++ b/react/features/base/participants/functions.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport { getGravatarURL } from '@jitsi/js-utils/avatar';import { IReduxState, IStore } from '../../app/types';diff --git a/react/features/base/premeeting/components/web/PreMeetingScreen.tsx b/react/features/base/premeeting/components/web/PreMeetingScreen.tsxindex 1c7a1f4523..7a7c5925f6 100644--- a/react/features/base/premeeting/components/web/PreMeetingScreen.tsx+++ b/react/features/base/premeeting/components/web/PreMeetingScreen.tsx@@ -12,8 +12,6 @@ import { getToolbarButtons, isToolbarButtonEnabled } from '../../../config/functimport { withPixelLineHeight } from '../../../styles/functions.web';import ConnectionStatus from './ConnectionStatus';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport Preview from './Preview';interface IProps {diff --git a/react/features/base/react/components/index.native.ts b/react/features/base/react/components/index.native.tsindex f38dab133a..79f5ca9e41 100644--- a/react/features/base/react/components/index.native.ts+++ b/react/features/base/react/components/index.native.ts@@ -1,5 +1,2 @@-/* eslint-disable lines-around-comment */-// @ts-ignoreexport { default as Container } from './native/Container';-// @ts-ignoreexport { default as Text } from './native/Text';diff --git a/react/features/base/react/components/native/SlidingView.tsx b/react/features/base/react/components/native/SlidingView.tsxindex 19ea1641b4..2459ddc299 100644--- a/react/features/base/react/components/native/SlidingView.tsx+++ b/react/features/base/react/components/native/SlidingView.tsx@@ -42,7 +42,7 @@ interface IProps {/*** Style of the animated view.*/- style: StyleType;+ style?: StyleType;}/**diff --git a/react/features/base/redux/PersistenceRegistry.ts b/react/features/base/redux/PersistenceRegistry.tsindex 981705ed2a..cdbbb1cefa 100644--- a/react/features/base/redux/PersistenceRegistry.ts+++ b/react/features/base/redux/PersistenceRegistry.ts@@ -1,7 +1,7 @@-// @ts-ignore+// @ts-expect-errorimport Bourne from '@hapi/bourne';// eslint-disable-next-line lines-around-comment-// @ts-ignore+// @ts-expect-errorimport { jitsiLocalStorage } from '@jitsi/js-utils';import md5 from 'js-md5';diff --git a/react/features/base/settings/components/native/SettingsButton.tsx b/react/features/base/settings/components/native/SettingsButton.tsxindex e71920294d..a139052f81 100644--- a/react/features/base/settings/components/native/SettingsButton.tsx+++ b/react/features/base/settings/components/native/SettingsButton.tsx@@ -1,5 +1,3 @@-/* eslint-disable lines-around-comment */-import { connect } from 'react-redux';import { IReduxState } from '../../../../app/types';@@ -7,9 +5,7 @@ import { translate } from '../../../../base/i18n/functions';import { IconGear } from '../../../../base/icons/svg';import AbstractButton, { IProps as AbstractButtonProps } from '../../../../base/toolbox/components/AbstractButton';import { navigate }-// @ts-ignorefrom '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';-// @ts-ignoreimport { screen } from '../../../../mobile/navigation/routes';import { SETTINGS_ENABLED } from '../../../flags/constants';import { getFeatureFlag } from '../../../flags/functions';diff --git a/react/features/base/settings/reducer.ts b/react/features/base/settings/reducer.tsindex cb3f1f5b53..17d7543361 100644--- a/react/features/base/settings/reducer.ts+++ b/react/features/base/settings/reducer.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport { jitsiLocalStorage } from '@jitsi/js-utils';import _ from 'lodash';diff --git a/react/features/base/tracks/actions.native.ts b/react/features/base/tracks/actions.native.tsindex d3472655ce..5202624115 100644--- a/react/features/base/tracks/actions.native.ts+++ b/react/features/base/tracks/actions.native.ts@@ -1,6 +1,4 @@import { IReduxState, IStore } from '../../app/types';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { setPictureInPictureEnabled } from '../../mobile/picture-in-picture/functions';import { showNotification } from '../../notifications/actions';import { NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants';diff --git a/react/features/base/tracks/actions.web.ts b/react/features/base/tracks/actions.web.tsindex 3d2a08faf1..d08a05a129 100644--- a/react/features/base/tracks/actions.web.ts+++ b/react/features/base/tracks/actions.web.ts@@ -10,8 +10,6 @@ import { setScreenAudioShareState, setScreenshareAudioTrack } from '../../screenimport { isAudioOnlySharing, isScreenVideoShared } from '../../screen-share/functions';import { toggleScreenshotCaptureSummary } from '../../screenshot-capture/actions';import { isScreenshotCaptureEnabled } from '../../screenshot-capture/functions';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { AudioMixerEffect } from '../../stream-effects/audio-mixer/AudioMixerEffect';import { getCurrentConference } from '../conference/functions';import { JitsiTrackErrors, JitsiTrackEvents } from '../lib-jitsi-meet';diff --git a/react/features/base/ui/components/native/IconButton.tsx b/react/features/base/ui/components/native/IconButton.tsxindex bd95c751b9..9cb2982a7f 100644--- a/react/features/base/ui/components/native/IconButton.tsx+++ b/react/features/base/ui/components/native/IconButton.tsx@@ -2,8 +2,6 @@ import React from 'react';import { TouchableRipple } from 'react-native-paper';import Icon from '../../../icons/components/Icon';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport styles from '../../../react/components/native/styles';import { IIconButtonProps } from '../../../react/types';import { BUTTON_TYPES } from '../../constants.native';diff --git a/react/features/base/util/parseURLParams.ts b/react/features/base/util/parseURLParams.tsindex 119b7e5853..e02d6086ce 100644--- a/react/features/base/util/parseURLParams.ts+++ b/react/features/base/util/parseURLParams.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport Bourne from '@hapi/bourne';import { reportError } from './helpers';diff --git a/react/features/calendar-sync/actions.native.ts b/react/features/calendar-sync/actions.native.tsindex 03a7c698af..a3a0e76980 100644--- a/react/features/calendar-sync/actions.native.ts+++ b/react/features/calendar-sync/actions.native.ts@@ -6,8 +6,6 @@ import { IStore } from '../app/types';import { openDialog } from '../base/dialog/actions';import { refreshCalendar } from './actions';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport UpdateCalendarEventDialog from './components/UpdateCalendarEventDialog.native';import { addLinkToCalendarEntry } from './functions.native';@@ -40,8 +38,6 @@ export function updateCalendarEvent(eventId: string) {const roomName = generateRoomWithoutSeparator();addLinkToCalendarEntry(getState(), eventId, `${defaultUrl}/${roomName}`)-- // @ts-ignore.finally(() => {dispatch(refreshCalendar(false, false));});diff --git a/react/features/calendar-sync/functions.web.ts b/react/features/calendar-sync/functions.web.tsindex 77021737b9..f8e7ac17b6 100644--- a/react/features/calendar-sync/functions.web.ts+++ b/react/features/calendar-sync/functions.web.ts@@ -1,4 +1,3 @@-/* eslint-disable lines-around-comment */import { IStore } from '../app/types';import { IStateful } from '../base/app/types';import { toState } from '../base/redux/functions';@@ -17,11 +16,8 @@ import {} from './constants';import { _updateCalendarEntries } from './functions.web';import logger from './logger';-// @ts-ignoreimport { googleCalendarApi } from './web/googleCalendar';-// @ts-ignoreimport { microsoftCalendarApi } from './web/microsoftCalendar';-/* eslint-enable lines-around-comment *//*** Determines whether the calendar feature is enabled by the web.diff --git a/react/features/calendar-sync/web/microsoftCalendar.ts b/react/features/calendar-sync/web/microsoftCalendar.tsindex 3494e11cd6..cf974418df 100644--- a/react/features/calendar-sync/web/microsoftCalendar.ts+++ b/react/features/calendar-sync/web/microsoftCalendar.ts@@ -1,6 +1,6 @@import { Client } from '@microsoft/microsoft-graph-client';// eslint-disable-next-line lines-around-comment-// @ts-ignore+// @ts-expect-errorimport base64js from 'base64-js';import { v4 as uuidV4 } from 'uuid';import { findWindows } from 'windows-iana';diff --git a/react/features/chat/actions.native.ts b/react/features/chat/actions.native.tsindex 7c0019388e..5fcffe8779 100644--- a/react/features/chat/actions.native.ts+++ b/react/features/chat/actions.native.ts@@ -1,10 +1,6 @@-/* eslint-disable lines-around-comment, max-len */-import { IParticipant } from '../base/participants/types';import { navigate }-// @ts-ignorefrom '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';-// @ts-ignoreimport { screen } from '../mobile/navigation/routes';import { OPEN_CHAT } from './actionTypes';diff --git a/react/features/chat/functions.ts b/react/features/chat/functions.tsindex a69895d8e3..e89bbfb70c 100644--- a/react/features/chat/functions.ts+++ b/react/features/chat/functions.ts@@ -1,7 +1,7 @@-// @ts-ignore+// @ts-expect-errorimport aliases from 'react-emoji-render/data/aliases';// eslint-disable-next-line lines-around-comment-// @ts-ignore+// @ts-expect-errorimport emojiAsciiAliases from 'react-emoji-render/data/asciiAliases';import { IReduxState } from '../app/types';diff --git a/react/features/conference/actions.native.ts b/react/features/conference/actions.native.tsindex 241a3c0a7f..bafc9c0083 100644--- a/react/features/conference/actions.native.ts+++ b/react/features/conference/actions.native.ts@@ -1,7 +1,5 @@import { IStore } from '../app/types';import { openDialog } from '../base/dialog/actions';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport AlertDialog from '../base/dialog/components/native/AlertDialog';import { getParticipantDisplayName } from '../base/participants/functions';diff --git a/react/features/conference/components/native/LonelyMeetingExperience.tsx b/react/features/conference/components/native/LonelyMeetingExperience.tsxindex fec3b2aa42..232ade5b6a 100644--- a/react/features/conference/components/native/LonelyMeetingExperience.tsx+++ b/react/features/conference/components/native/LonelyMeetingExperience.tsx@@ -20,7 +20,6 @@ import { isInBreakoutRoom } from '../../../breakout-rooms/functions';import { doInvitePeople } from '../../../invite/actions.native';import { getInviteOthersControl } from '../../../share-room/functions';-// @ts-ignoreimport styles from './styles';diff --git a/react/features/conference/components/native/carmode/CarMode.tsx b/react/features/conference/components/native/carmode/CarMode.tsxindex 27c683dbe1..2a5a1b127d 100644--- a/react/features/conference/components/native/carmode/CarMode.tsx+++ b/react/features/conference/components/native/carmode/CarMode.tsx@@ -1,30 +1,22 @@/* eslint-disable lines-around-comment */import React, { useEffect } from 'react';-import { View } from 'react-native';+import { View, ViewStyle } from 'react-native';import Orientation from 'react-native-orientation-locker';import { withSafeAreaInsets } from 'react-native-safe-area-context';import { useDispatch, useSelector } from 'react-redux';-// @ts-ignoreimport JitsiScreen from '../../../../base/modal/components/JitsiScreen';-// @ts-ignoreimport LoadingIndicator from '../../../../base/react/components/native/LoadingIndicator';-// @ts-ignoreimport TintedView from '../../../../base/react/components/native/TintedView';import { isLocalVideoTrackDesktop } from '../../../../base/tracks/functions.native';-// @ts-ignoreimport { setPictureInPictureEnabled } from '../../../../mobile/picture-in-picture/functions';-// @ts-ignoreimport { setIsCarmode } from '../../../../video-layout/actions';-// @ts-ignoreimport ConferenceTimer from '../../ConferenceTimer';-// @ts-ignoreimport { isConnecting } from '../../functions';import CarModeFooter from './CarModeFooter';import MicrophoneButton from './MicrophoneButton';import TitleBar from './TitleBar';-// @ts-ignoreimport styles from './styles';/**@@ -66,17 +58,16 @@ const CarMode = (): JSX.Element => {}<ViewpointerEvents = 'box-none'- style = { styles.titleBarSafeViewColor }>+ style = { styles.titleBarSafeViewColor as ViewStyle }><View- style = { styles.titleBar }>- {/* @ts-ignore */}+ style = { styles.titleBar as ViewStyle }><TitleBar /></View><ConferenceTimer textStyle = { styles.roomTimer } /></View><ViewpointerEvents = 'box-none'- style = { styles.microphoneContainer }>+ style = { styles.microphoneContainer as ViewStyle }><MicrophoneButton /></View></JitsiScreen>diff --git a/react/features/conference/components/native/carmode/CarModeFooter.tsx b/react/features/conference/components/native/carmode/CarModeFooter.tsxindex de6a648a78..22054c1ff7 100644--- a/react/features/conference/components/native/carmode/CarModeFooter.tsx+++ b/react/features/conference/components/native/carmode/CarModeFooter.tsx@@ -1,11 +1,9 @@import React from 'react';import { useTranslation } from 'react-i18next';-import { Text, View } from 'react-native';+import { Text, View, ViewStyle } from 'react-native';import EndMeetingButton from './EndMeetingButton';import SoundDeviceButton from './SoundDeviceButton';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport styles from './styles';/**@@ -19,7 +17,7 @@ const CarModeFooter = (): JSX.Element => {return (<ViewpointerEvents = 'box-none'- style = { styles.bottomContainer }>+ style = { styles.bottomContainer as ViewStyle }><Text style = { styles.videoStoppedLabel }>{ t('carmode.labels.videoStopped') }</Text>diff --git a/react/features/conference/components/native/carmode/EndMeetingButton.tsx b/react/features/conference/components/native/carmode/EndMeetingButton.tsxindex 7cfa3bfdbb..3f218988c9 100644--- a/react/features/conference/components/native/carmode/EndMeetingButton.tsx+++ b/react/features/conference/components/native/carmode/EndMeetingButton.tsx@@ -8,8 +8,6 @@ import Button from '../../../../base/ui/components/native/Button';import { BUTTON_TYPES } from '../../../../base/ui/constants.native';import EndMeetingIcon from './EndMeetingIcon';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport styles from './styles';/**diff --git a/react/features/conference/components/native/carmode/MicrophoneButton.tsx b/react/features/conference/components/native/carmode/MicrophoneButton.tsxindex f8dbe737d1..5eda77e981 100644--- a/react/features/conference/components/native/carmode/MicrophoneButton.tsx+++ b/react/features/conference/components/native/carmode/MicrophoneButton.tsx@@ -1,5 +1,5 @@import React, { useCallback, useState } from 'react';-import { TouchableOpacity, View } from 'react-native';+import { TouchableOpacity, View, ViewStyle } from 'react-native';import { useDispatch, useSelector } from 'react-redux';import {@@ -18,7 +18,6 @@ import { isLocalTrackMuted } from '../../../../base/tracks/functions';import { isAudioMuteButtonDisabled } from '../../../../toolbox/functions.any';import { muteLocal } from '../../../../video-menu/actions';-// @ts-ignoreimport styles from './styles';const LONG_PRESS = 'long.press';@@ -77,9 +76,9 @@ const MicrophoneButton = (): JSX.Element | null => {style = { [styles.microphoneStyles.container,!audioMuted && styles.microphoneStyles.unmuted- ] }>+ ] as ViewStyle[] }><View- style = { styles.microphoneStyles.iconContainer }>+ style = { styles.microphoneStyles.iconContainer as ViewStyle }><Iconsrc = { audioMuted ? IconMicSlash : IconMic }style = { styles.microphoneStyles.icon } />diff --git a/react/features/conference/components/native/carmode/SoundDeviceButton.tsx b/react/features/conference/components/native/carmode/SoundDeviceButton.tsxindex 6671b69e6c..11848484f0 100644--- a/react/features/conference/components/native/carmode/SoundDeviceButton.tsx+++ b/react/features/conference/components/native/carmode/SoundDeviceButton.tsx@@ -1,15 +1,14 @@-/* eslint-disable lines-around-comment */import React, { useCallback } from 'react';import { useDispatch } from 'react-redux';import { openSheet } from '../../../../base/dialog/actions';import Button from '../../../../base/ui/components/native/Button';import { BUTTON_TYPES } from '../../../../base/ui/constants.native';+// eslint-disable-next-line lines-around-comment// @ts-ignoreimport AudioRoutePickerDialog from '../../../../mobile/audio-mode/components/AudioRoutePickerDialog';import AudioIcon from './AudioIcon';-// @ts-ignoreimport styles from './styles';/**diff --git a/react/features/conference/components/native/carmode/TitleBar.tsx b/react/features/conference/components/native/carmode/TitleBar.tsxindex ecb3059162..0e344e1ec9 100644--- a/react/features/conference/components/native/carmode/TitleBar.tsx+++ b/react/features/conference/components/native/carmode/TitleBar.tsx@@ -1,5 +1,3 @@-/* eslint-disable lines-around-comment */-import React from 'react';import { StyleProp, Text, View, ViewStyle } from 'react-native';import { connect, useSelector } from 'react-redux';@@ -10,14 +8,12 @@ import { MEETING_NAME_ENABLED } from '../../../../base/flags/constants';import { getFeatureFlag } from '../../../../base/flags/functions';import { JitsiRecordingConstants } from '../../../../base/lib-jitsi-meet';import { getLocalParticipant } from '../../../../base/participants/functions';-// @ts-ignoreimport ConnectionIndicator from '../../../../connection-indicator/components/native/ConnectionIndicator';-// @ts-ignoreimport RecordingLabel from '../../../../recording/components/native/RecordingLabel';+// eslint-disable-next-line lines-around-comment// @ts-ignoreimport VideoQualityLabel from '../../../../video-quality/components/VideoQualityLabel.native';-// @ts-ignoreimport styles from './styles';@@ -56,9 +52,7 @@ const TitleBar = (props: IProps): JSX.Element => {<VideoQualityLabel /></View><ConnectionIndicator- // @ts-ignoreiconStyle = { styles.connectionIndicatorIcon }- // @ts-ignoreparticipantId = { localParticipantId } /><View style = { styles.headerLabels as StyleProp<ViewStyle> }><RecordingLabel mode = { JitsiRecordingConstants.mode.FILE } />diff --git a/react/features/conference/components/native/carmode/styles.js b/react/features/conference/components/native/carmode/styles.tssimilarity index 100%rename from react/features/conference/components/native/carmode/styles.jsrename to react/features/conference/components/native/carmode/styles.tsdiff --git a/react/features/conference/components/native/styles.js b/react/features/conference/components/native/styles.tssimilarity index 100%rename from react/features/conference/components/native/styles.jsrename to react/features/conference/components/native/styles.tsdiff --git a/react/features/conference/middleware.ts b/react/features/conference/middleware.tsindex 498b71babb..5b6e7d9dbb 100644--- a/react/features/conference/middleware.ts+++ b/react/features/conference/middleware.ts@@ -28,8 +28,6 @@ import { SET_REDUCED_UI } from '../base/responsive-ui/actionTypes';import { BUTTON_TYPES } from '../base/ui/constants.any';import { inIframe } from '../base/util/iframeUtils';import { isCalendarEnabled } from '../calendar-sync/functions';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport FeedbackDialog from '../feedback/components/FeedbackDialog';import { setFilmstripEnabled } from '../filmstrip/actions.any';import { isVpaasMeeting } from '../jaas/functions';diff --git a/react/features/connection-indicator/components/native/ConnectionIndicator.tsx b/react/features/connection-indicator/components/native/ConnectionIndicator.tsxindex dba1a27c46..0cb3f6b972 100644--- a/react/features/connection-indicator/components/native/ConnectionIndicator.tsx+++ b/react/features/connection-indicator/components/native/ConnectionIndicator.tsx@@ -87,7 +87,6 @@ class ConnectionIndicator extends AbstractConnectionIndicator<IProps, IState> {constructor(props: IProps) {super(props);- // @ts-ignorethis.state = {autoHideTimeout: undefined,showIndicator: false,diff --git a/react/features/connection-indicator/components/native/styles.ts b/react/features/connection-indicator/components/native/styles.tsindex 699d32a66d..34687e4aba 100644--- a/react/features/connection-indicator/components/native/styles.ts+++ b/react/features/connection-indicator/components/native/styles.ts@@ -1,6 +1,4 @@import BaseTheme from '../../../base/ui/components/BaseTheme.native';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { INDICATOR_DISPLAY_THRESHOLD } from '../AbstractConnectionIndicator';export const CONNECTOR_INDICATOR_LOST = BaseTheme.palette.ui05;diff --git a/react/features/deep-linking/components/DeepLinkingDesktopPage.native.ts b/react/features/deep-linking/components/DeepLinkingDesktopPage.native.tsindex e69de29bb2..ff8b4c5632 100644--- a/react/features/deep-linking/components/DeepLinkingDesktopPage.native.ts+++ b/react/features/deep-linking/components/DeepLinkingDesktopPage.native.ts@@ -0,0 +1 @@+export default {};diff --git a/react/features/deep-linking/components/DeepLinkingMobilePage.native.ts b/react/features/deep-linking/components/DeepLinkingMobilePage.native.tsindex e69de29bb2..ff8b4c5632 100644--- a/react/features/deep-linking/components/DeepLinkingMobilePage.native.ts+++ b/react/features/deep-linking/components/DeepLinkingMobilePage.native.ts@@ -0,0 +1 @@+export default {};diff --git a/react/features/deep-linking/components/NoMobileApp.native.ts b/react/features/deep-linking/components/NoMobileApp.native.tsindex e69de29bb2..ff8b4c5632 100644--- a/react/features/deep-linking/components/NoMobileApp.native.ts+++ b/react/features/deep-linking/components/NoMobileApp.native.ts@@ -0,0 +1 @@+export default {};diff --git a/react/features/deep-linking/functions.ts b/react/features/deep-linking/functions.tsindex 685fc5eac2..d48b95bee6 100644--- a/react/features/deep-linking/functions.ts+++ b/react/features/deep-linking/functions.ts@@ -1,18 +1,13 @@-/* eslint-disable lines-around-comment */import { IReduxState } from '../app/types';import { isMobileBrowser } from '../base/environment/utils';import Platform from '../base/react/Platform';import { URI_PROTOCOL_PATTERN } from '../base/util/uri';import { isVpaasMeeting } from '../jaas/functions';-// @ts-ignoreimport DeepLinkingDesktopPage from './components/DeepLinkingDesktopPage';-// @ts-ignoreimport DeepLinkingMobilePage from './components/DeepLinkingMobilePage';-// @ts-ignoreimport NoMobileApp from './components/NoMobileApp';import { _openDesktopApp } from './openDesktopApp';-/* eslint-enable lines-around-comment *//*** Generates a deep linking URL based on the current window URL.diff --git a/react/features/device-selection/components/AudioInputPreview.web.tsx b/react/features/device-selection/components/AudioInputPreview.web.tsxindex ced99dedb8..7565172268 100644--- a/react/features/device-selection/components/AudioInputPreview.web.tsx+++ b/react/features/device-selection/components/AudioInputPreview.web.tsx@@ -1,7 +1,6 @@import React, { useEffect, useState } from 'react';import { makeStyles } from 'tss-react/mui';-// @ts-ignoreimport JitsiMeetJS from '../../base/lib-jitsi-meet/_.web';const JitsiTrackEvents = JitsiMeetJS.events.track;diff --git a/react/features/display-name/actions.ts b/react/features/display-name/actions.tsindex ff4ce2b1cd..c307b0fbe6 100644--- a/react/features/display-name/actions.ts+++ b/react/features/display-name/actions.ts@@ -1,6 +1,5 @@import { openDialog } from '../base/dialog/actions';-// @ts-ignoreimport { DisplayNamePrompt } from './components';/**diff --git a/react/features/display-name/components/index.native.ts b/react/features/display-name/components/index.native.tsindex 4b38a7b0b9..6c2a5d2410 100644--- a/react/features/display-name/components/index.native.ts+++ b/react/features/display-name/components/index.native.ts@@ -1,2 +1 @@-// @ts-ignoreexport { default as DisplayNamePrompt } from './native/DisplayNamePrompt';diff --git a/react/features/display-name/middleware.ts b/react/features/display-name/middleware.tsindex 8a5455d1bb..1aad445768 100644--- a/react/features/display-name/middleware.ts+++ b/react/features/display-name/middleware.ts@@ -3,7 +3,6 @@ import { isDialogOpen } from '../base/dialog/functions';import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';import { SETTINGS_UPDATED } from '../base/settings/actionTypes';-// @ts-ignoreimport { DisplayNamePrompt } from './components';/**diff --git a/react/features/dropbox/functions.native.ts b/react/features/dropbox/functions.native.tsindex 1debe07986..1c4c3a5826 100644--- a/react/features/dropbox/functions.native.ts+++ b/react/features/dropbox/functions.native.ts@@ -1,8 +1,6 @@import { NativeModules } from 'react-native';import { IReduxState } from '../app/types';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { setPictureInPictureEnabled } from '../mobile/picture-in-picture/functions';const { Dropbox } = NativeModules;@@ -70,8 +68,7 @@ export function getSpaceUsage(token: string, _appKey?: any) {* @returns {boolean}*/export function isEnabled(state: IReduxState) {- const { dropbox = {} } = state['features/base/config'];+ const { dropbox = { appKey: undefined } } = state['features/base/config'];- // @ts-ignorereturn Boolean(Dropbox?.ENABLED && typeof dropbox.appKey === 'string');}diff --git a/react/features/feedback/components/FeedbackDialog.native.ts b/react/features/feedback/components/FeedbackDialog.native.tsindex e69de29bb2..5dae9e61dc 100644--- a/react/features/feedback/components/FeedbackDialog.native.ts+++ b/react/features/feedback/components/FeedbackDialog.native.ts@@ -0,0 +1,3 @@+import { Component } from 'react';++export default Component;diff --git a/react/features/filmstrip/actions.native.ts b/react/features/filmstrip/actions.native.tsindex 0fa74080e0..971fb78198 100644--- a/react/features/filmstrip/actions.native.ts+++ b/react/features/filmstrip/actions.native.ts@@ -1,9 +1,6 @@-// @ts-ignoreimport conferenceStyles from '../conference/components/native/styles';import { SET_TILE_VIEW_DIMENSIONS } from './actionTypes';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport styles from './components/native/styles';import { SQUARE_TILE_ASPECT_RATIO, TILE_MARGIN } from './constants';import { getColumnCount, getTileViewParticipantCount } from './functions.native';@@ -24,7 +21,7 @@ export function setTileViewDimensions() {const { clientHeight: height, clientWidth: width, safeAreaInsets = {} } = state['features/base/responsive-ui'];const { left = 0, right = 0, top = 0, bottom = 0 } = safeAreaInsets;const columns = getColumnCount(state);- const rows = Math.ceil(participantCount / columns);+ const rows = Math.ceil(participantCount / columns); // @ts-ignoreconst conferenceBorder = conferenceStyles.conference.borderWidth || 0;const heightToUse = height - top - bottom - (2 * conferenceBorder);const widthToUse = width - (TILE_MARGIN * 2) - left - right - (2 * conferenceBorder);diff --git a/react/features/filmstrip/components/native/ModeratorIndicator.tsx b/react/features/filmstrip/components/native/ModeratorIndicator.tsxindex f90a60b9c7..20bfcfb7d0 100644--- a/react/features/filmstrip/components/native/ModeratorIndicator.tsx+++ b/react/features/filmstrip/components/native/ModeratorIndicator.tsx@@ -1,8 +1,6 @@import React from 'react';import { IconModerator } from '../../../base/icons/svg';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport BaseIndicator from '../../../base/react/components/native/BaseIndicator';/**diff --git a/react/features/filmstrip/components/web/Thumbnail.tsx b/react/features/filmstrip/components/web/Thumbnail.tsxindex 57b963f3f9..42ccd85723 100644--- a/react/features/filmstrip/components/web/Thumbnail.tsx+++ b/react/features/filmstrip/components/web/Thumbnail.tsx@@ -1306,9 +1306,17 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object {const { thumbnailSize } = state['features/filmstrip'].tileViewDimensions ?? { thumbnailSize: undefined };const {stageFilmstripDimensions = {- thumbnailSize: {}+ thumbnailSize: {+ height: undefined,+ width: undefined+ }},- screenshareFilmstripDimensions+ screenshareFilmstripDimensions = {+ thumbnailSize: {+ height: undefined,+ width: undefined+ }+ }} = state['features/filmstrip'];size = {@@ -1317,16 +1325,19 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object {};if (filmstripType === FILMSTRIP_TYPE.STAGE) {- // @ts-ignore- const { width: _width, height: _height } = stageFilmstripDimensions.thumbnailSize;+ const { width: _width, height: _height } = stageFilmstripDimensions.thumbnailSize ?? {+ width: undefined,+ height: undefined };size = {_width,_height};} else if (filmstripType === FILMSTRIP_TYPE.SCREENSHARE) {- // @ts-ignore- const { width: _width, height: _height } = screenshareFilmstripDimensions.thumbnailSize;+ const { width: _width, height: _height } = screenshareFilmstripDimensions.thumbnailSize ?? {+ width: undefined,+ height: undefined+ };size = {_width,diff --git a/react/features/filmstrip/components/web/ThumbnailAudioIndicator.tsx b/react/features/filmstrip/components/web/ThumbnailAudioIndicator.tsxindex a280988972..29f214fcc6 100644--- a/react/features/filmstrip/components/web/ThumbnailAudioIndicator.tsx+++ b/react/features/filmstrip/components/web/ThumbnailAudioIndicator.tsx@@ -1,8 +1,6 @@import React, { useEffect, useState } from 'react';import AudioLevelIndicator from '../../../audio-level-indicator/components/AudioLevelIndicator';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport JitsiMeetJS from '../../../base/lib-jitsi-meet/_';import { ITrack } from '../../../base/tracks/types';diff --git a/react/features/filmstrip/functions.native.ts b/react/features/filmstrip/functions.native.tsindex e01f9ec883..8c26653552 100644--- a/react/features/filmstrip/functions.native.ts+++ b/react/features/filmstrip/functions.native.ts@@ -11,12 +11,9 @@ import Platform from '../base/react/Platform.native';import { toState } from '../base/redux/functions';import { ASPECT_RATIO_NARROW } from '../base/responsive-ui/constants';import { getHideSelfView } from '../base/settings/functions.any';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport conferenceStyles from '../conference/components/native/styles';import { shouldDisplayTileView } from '../video-layout/functions.native';-// @ts-ignoreimport styles from './components/native/styles';export * from './functions.any';@@ -230,7 +227,7 @@ export function getFilmstripDimensions({};localParticipantVisible?: boolean;}) {- const { height, width, margin } = styles.thumbnail;+ const { height, width, margin } = styles.thumbnail; // @ts-ignoreconst conferenceBorder = conferenceStyles.conference.borderWidth || 0;const { left = 0, right = 0, top = 0, bottom = 0 } = insets;diff --git a/react/features/google-api/actions.ts b/react/features/google-api/actions.tsindex 04ec2f24eb..682aa4a6bf 100644--- a/react/features/google-api/actions.ts+++ b/react/features/google-api/actions.ts@@ -9,7 +9,7 @@ import {import { GOOGLE_API_STATES } from './constants';// eslint-disable-next-line lines-around-comment// @ts-ignore-import googleApi from './googleApi.web';+import googleApi from './googleApi';/*** Retrieves the current calendar events.diff --git a/react/features/invite/actions.native.ts b/react/features/invite/actions.native.tsindex f457368e2f..4b153a4b0d 100644--- a/react/features/invite/actions.native.ts+++ b/react/features/invite/actions.native.ts@@ -1,19 +1,14 @@-/* eslint-disable lines-around-comment */import { IStore } from '../app/types';import { addPeopleFeatureControl } from '../base/participants/functions';-// @ts-ignoreimport { navigate } from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';-// @ts-ignoreimport { screen } from '../mobile/navigation/routes';import { beginShareRoom } from '../share-room/actions';-/* eslint-enable lines-around-comment */-export * from './actions.any';/**- * Starts the process for inviting people. Dpending on the sysstem config it- * may use the system share sheet or the invite peoplee dialog.+ * Starts the process for inviting people. Depending on the system config it+ * may use the system share sheet or the invite people dialog.** @returns {Function}*/diff --git a/react/features/mobile/navigation/components/ConnectingPage.tsx b/react/features/mobile/navigation/components/ConnectingPage.tsxindex 5abfcf3ade..8d15bdddde 100644--- a/react/features/mobile/navigation/components/ConnectingPage.tsx+++ b/react/features/mobile/navigation/components/ConnectingPage.tsx@@ -1,10 +1,7 @@-/* eslint-disable lines-around-comment */-import React from 'react';import { useTranslation } from 'react-i18next';import { SafeAreaView, Text, View, ViewStyle } from 'react-native';-// @ts-ignoreimport JitsiScreen from '../../../base/modal/components/JitsiScreen';import LoadingIndicator from '../../../base/react/components/native/LoadingIndicator';diff --git a/react/features/mobile/navigation/components/RootNavigationContainer.tsx b/react/features/mobile/navigation/components/RootNavigationContainer.tsxindex 96f206cebd..b366a7c960 100644--- a/react/features/mobile/navigation/components/RootNavigationContainer.tsx+++ b/react/features/mobile/navigation/components/RootNavigationContainer.tsx@@ -1,5 +1,3 @@-/* eslint-disable lines-around-comment */-import { NavigationContainer, Theme } from '@react-navigation/native';import { createStackNavigator } from '@react-navigation/stack';import React, { useCallback } from 'react';@@ -7,19 +5,13 @@ import { StatusBar } from 'react-native';import { connect } from 'react-redux';import { IReduxState } from '../../../app/types';-// @ts-ignoreimport DialInSummary from '../../../invite/components/dial-in-summary/native/DialInSummary';import Prejoin from '../../../prejoin/components/native/Prejoin';-// @ts-ignoreimport WelcomePage from '../../../welcome/components/WelcomePage';import { isWelcomePageEnabled } from '../../../welcome/functions';-// @ts-ignoreimport { _ROOT_NAVIGATION_READY } from '../actionTypes';-// @ts-ignoreimport { rootNavigationRef } from '../rootNavigationContainerRef';-// @ts-ignoreimport { screen } from '../routes';-// @ts-ignoreimport {conferenceNavigationContainerScreenOptions,connectingScreenOptions,@@ -27,7 +19,6 @@ import {navigationContainerTheme,preJoinScreenOptions,welcomeScreenOptions- // @ts-ignore} from '../screenOptions';import ConnectingPage from './ConnectingPage';@@ -82,6 +73,7 @@ const RootNavigationContainer = ({ dispatch, isWelcomePageAvailable }: IProps) =name = { screen.welcome.main }options = { welcomeScreenOptions } /><RootStack.Screen+// @ts-ignorecomponent = { DialInSummary }name = { screen.dialInSummary }diff --git a/react/features/mobile/navigation/components/TabBarLabelCounter.tsx b/react/features/mobile/navigation/components/TabBarLabelCounter.tsxindex a0d7ff6c12..5864b66d72 100644--- a/react/features/mobile/navigation/components/TabBarLabelCounter.tsx+++ b/react/features/mobile/navigation/components/TabBarLabelCounter.tsx@@ -1,8 +1,6 @@-// @ts-ignoreimport React from 'react';import { StyleProp, Text, TextStyle, View } from 'react-native';-// @ts-ignoreimport { navigationStyles } from './styles';interface ITabBarLabelCounterProps {diff --git a/react/features/mobile/navigation/components/chat/components/ChatAndPollsNavigator.tsx b/react/features/mobile/navigation/components/chat/components/ChatAndPollsNavigator.tsxindex 026db1b00d..0ecee90c90 100644--- a/react/features/mobile/navigation/components/chat/components/ChatAndPollsNavigator.tsx+++ b/react/features/mobile/navigation/components/chat/components/ChatAndPollsNavigator.tsx@@ -1,7 +1,6 @@/* eslint-disable lines-around-comment */import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';-// @ts-ignoreimport React from 'react';import { useDispatch, useSelector } from 'react-redux';@@ -9,18 +8,13 @@ import { IReduxState } from '../../../../../app/types';import {getClientHeight,getClientWidth- // @ts-ignore} from '../../../../../base/modal/components/functions';-// @ts-ignoreimport { setIsPollsTabFocused } from '../../../../../chat/actions.native';// @ts-ignoreimport Chat from '../../../../../chat/components/native/Chat';import { resetNbUnreadPollsMessages } from '../../../../../polls/actions';-// @ts-ignoreimport PollsPane from '../../../../../polls/components/native/PollsPane';-// @ts-ignoreimport { screen } from '../../../routes';-// @ts-ignoreimport { chatTabBarOptions } from '../../../screenOptions';const ChatTab = createMaterialTopTabNavigator();diff --git a/react/features/mobile/picture-in-picture/functions.js b/react/features/mobile/picture-in-picture/functions.tssimilarity index 97%rename from react/features/mobile/picture-in-picture/functions.jsrename to react/features/mobile/picture-in-picture/functions.tsindex b03e09d7e2..d3f95ebda0 100644--- a/react/features/mobile/picture-in-picture/functions.js+++ b/react/features/mobile/picture-in-picture/functions.ts@@ -1,5 +1,3 @@-// @flow-import { NativeModules } from 'react-native';/**diff --git a/react/features/old-client-notification/middleware.tsx b/react/features/old-client-notification/middleware.tsxindex c812f37d51..1b97763ee6 100644--- a/react/features/old-client-notification/middleware.tsx+++ b/react/features/old-client-notification/middleware.tsx@@ -7,7 +7,6 @@ import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';import { showErrorNotification } from '../notifications/actions';import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';-// @ts-ignoreimport OldElectronAPPNotificationDescription from './components/OldElectronAPPNotificationDescription';import { isOldJitsiMeetElectronApp } from './functions';diff --git a/react/features/overlay/components/web/AbstractPageReloadOverlay.tsx b/react/features/overlay/components/web/AbstractPageReloadOverlay.tsxindex a3469d29b8..82fc74d547 100644--- a/react/features/overlay/components/web/AbstractPageReloadOverlay.tsx+++ b/react/features/overlay/components/web/AbstractPageReloadOverlay.tsx@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport { randomInt } from '@jitsi/js-utils/random';import React, { Component } from 'react';import { WithTranslation } from 'react-i18next';@@ -100,8 +100,6 @@ export default class AbstractPageReloadOverlay<P extends IProps>const { error: connectionError } = state['features/base/connection'];const jitsiConnectionError-- // @ts-ignore= connectionError && isFatalJitsiConnectionError(connectionError);const jitsiConferenceError= conferenceError && isFatalJitsiConferenceError(conferenceError);diff --git a/react/features/participants-pane/actions.native.ts b/react/features/participants-pane/actions.native.tsindex 49edb900c6..0574cdbe8d 100644--- a/react/features/participants-pane/actions.native.ts+++ b/react/features/participants-pane/actions.native.ts@@ -2,12 +2,9 @@import { IStore } from '../app/types';import { openSheet } from '../base/dialog/actions';import { navigate }-// @ts-ignorefrom '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';-// @ts-ignoreimport { screen } from '../mobile/navigation/routes';import ConnectionStatusComponent-// @ts-ignorefrom '../video-menu/components/native/ConnectionStatusComponent';// @ts-ignoreimport LocalVideoMenu from '../video-menu/components/native/LocalVideoMenu';diff --git a/react/features/participants-pane/components/native/MeetingParticipantList.tsx b/react/features/participants-pane/components/native/MeetingParticipantList.tsxindex b409c31e50..ad26400b6a 100644--- a/react/features/participants-pane/components/native/MeetingParticipantList.tsx+++ b/react/features/participants-pane/components/native/MeetingParticipantList.tsx@@ -1,5 +1,3 @@-/* eslint-disable lines-around-comment */-import React, { PureComponent } from 'react';import { WithTranslation } from 'react-i18next';import { FlatList, Text } from 'react-native';@@ -30,11 +28,8 @@ import {shouldRenderInviteButton} from '../../functions';-// @ts-ignoreimport CollapsibleList from './CollapsibleList';-// @ts-ignoreimport MeetingParticipantItem from './MeetingParticipantItem';-// @ts-ignoreimport styles from './styles';@@ -261,7 +256,6 @@ class MeetingParticipantList extends PureComponent<IProps> {}<Inputclearable = { true }- // @ts-ignorecustomStyles = {{container: styles.inputContainer,input: styles.centerInput }}diff --git a/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx b/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsxindex aedb6ec51c..1d98302587 100644--- a/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx+++ b/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx@@ -1,4 +1,3 @@-/* eslint-disable lines-around-comment */import React, { useCallback } from 'react';import { View, ViewStyle } from 'react-native';import { useDispatch, useSelector } from 'react-redux';@@ -8,13 +7,12 @@ import { IconDotsHorizontal } from '../../../base/icons/svg';import Button from '../../../base/ui/components/native/Button';import IconButton from '../../../base/ui/components/native/IconButton';import { BUTTON_TYPES } from '../../../base/ui/constants.native';+// eslint-disable-next-line lines-around-comment// @ts-ignoreimport MuteEveryoneDialog from '../../../video-menu/components/native/MuteEveryoneDialog';import { isMoreActionsVisible, isMuteAllVisible } from '../../functions';-// @ts-ignoreimport { ContextMenuMore } from './ContextMenuMore';-// @ts-ignoreimport styles from './styles';diff --git a/react/features/participants-pane/components/native/RoomParticipantMenu.tsx b/react/features/participants-pane/components/native/RoomParticipantMenu.tsxindex 2027cd9a89..20a176bdb6 100644--- a/react/features/participants-pane/components/native/RoomParticipantMenu.tsx+++ b/react/features/participants-pane/components/native/RoomParticipantMenu.tsx@@ -1,4 +1,3 @@-/* eslint-disable lines-around-comment */import React, { PureComponent } from 'react';import { WithTranslation } from 'react-i18next';import { Text, TextStyle, View, ViewStyle } from 'react-native';@@ -7,15 +6,13 @@ import { connect } from 'react-redux';import { IReduxState } from '../../../app/types';import Avatar from '../../../base/avatar/components/Avatar';import { hideSheet } from '../../../base/dialog/actions';-// @ts-ignoreimport BottomSheet from '../../../base/dialog/components/native/BottomSheet';-// @ts-ignoreimport { bottomSheetStyles } from '../../../base/dialog/components/native/styles';import { translate } from '../../../base/i18n/functions';import { getBreakoutRooms } from '../../../breakout-rooms/functions';+// eslint-disable-next-line lines-around-comment// @ts-ignoreimport SendToBreakoutRoom from '../../../video-menu/components/native/SendToBreakoutRoom';-// @ts-ignoreimport styles from '../../../video-menu/components/native/styles';/**diff --git a/react/features/polls/components/native/PollAnswer.tsx b/react/features/polls/components/native/PollAnswer.tsxindex b1b41ea1b4..c323e01645 100644--- a/react/features/polls/components/native/PollAnswer.tsx+++ b/react/features/polls/components/native/PollAnswer.tsx@@ -9,7 +9,6 @@ import { BUTTON_TYPES } from '../../../base/ui/constants.native';import { isSubmitAnswerDisabled } from '../../functions';import AbstractPollAnswer, { AbstractProps } from '../AbstractPollAnswer';-// @ts-ignoreimport { chatStyles, dialogStyles } from './styles';diff --git a/react/features/prejoin/components/native/Prejoin.tsx b/react/features/prejoin/components/native/Prejoin.tsxindex 91bc75f0a9..7b2e23f490 100644--- a/react/features/prejoin/components/native/Prejoin.tsx+++ b/react/features/prejoin/components/native/Prejoin.tsx@@ -146,7 +146,6 @@ const Prejoin: React.FC<IPrejoinProps> = ({ navigation }: IPrejoinProps) => {{ roomName }</Text></View>- {/* @ts-ignore */}<LargeVideo /></View>}diff --git a/react/features/recent-list/functions.native.ts b/react/features/recent-list/functions.native.tsindex 8e099a512d..1d1dd5a008 100644--- a/react/features/recent-list/functions.native.ts+++ b/react/features/recent-list/functions.native.ts@@ -2,8 +2,6 @@ import {getLocalizedDateFormatter,getLocalizedDurationFormatter} from '../base/i18n/dateUtil';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport NavigateSectionList from '../base/react/components/native/NavigateSectionList';import { parseURIString, safeDecodeURIComponent } from '../base/util/uri';diff --git a/react/features/recording/actions.native.ts b/react/features/recording/actions.native.tsindex c326932abc..9401e8311b 100644--- a/react/features/recording/actions.native.ts+++ b/react/features/recording/actions.native.ts@@ -4,7 +4,6 @@ import JitsiMeetJS from '../base/lib-jitsi-meet';import { showNotification } from '../notifications/actions';import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';-// @ts-ignoreimport HighlightDialog from './components/Recording/native/HighlightDialog';export * from './actions.any';diff --git a/react/features/recording/components/Recording/index.native.ts b/react/features/recording/components/Recording/index.native.tsindex d51e121d77..286cb973db 100644--- a/react/features/recording/components/Recording/index.native.ts+++ b/react/features/recording/components/Recording/index.native.ts@@ -1,2 +1 @@-// @ts-ignoreexport { default as StartRecordingDialog } from './native/StartRecordingDialog';diff --git a/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx b/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsxindex a57137fe40..770949440c 100644--- a/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx+++ b/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx@@ -1,11 +1,9 @@-/* eslint-disable lines-around-comment */import React from 'react';import { Image, View } from 'react-native';import { Text } from 'react-native-paper';import { connect } from 'react-redux';import { translate } from '../../../../base/i18n/functions';-// @ts-ignoreimport LoadingIndicator from '../../../../base/react/components/native/LoadingIndicator';import Button from '../../../../base/ui/components/native/Button';import Switch from '../../../../base/ui/components/native/Switch';@@ -21,7 +19,6 @@ import {ICON_CLOUD,ICON_INFO,ICON_USERS- // @ts-ignore} from '../styles.native';diff --git a/react/features/remote-control/actions.ts b/react/features/remote-control/actions.tsindex 21bec01d11..fc3eb3732c 100644--- a/react/features/remote-control/actions.ts+++ b/react/features/remote-control/actions.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport $ from 'jquery';import React from 'react';diff --git a/react/features/room-lock/actions.ts b/react/features/room-lock/actions.tsindex 0586e1f430..4993b42d36 100644--- a/react/features/room-lock/actions.ts+++ b/react/features/room-lock/actions.ts@@ -11,7 +11,6 @@ import { hideDialog, openDialog } from '../base/dialog/actions';// @ts-ignoreimport { SecurityDialog } from '../security/components/security-dialog';-// @ts-ignoreimport PasswordRequiredPrompt from './components/PasswordRequiredPrompt';/**diff --git a/react/features/room-lock/middleware.ts b/react/features/room-lock/middleware.tsindex 6591a8bae5..9ba611c0fd 100644--- a/react/features/room-lock/middleware.ts+++ b/react/features/room-lock/middleware.ts@@ -16,8 +16,6 @@ import { showNotification } from '../notifications/actions';import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';import { _openPasswordRequiredPrompt } from './actions';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport PasswordRequiredPrompt from './components/PasswordRequiredPrompt';import { LOCKED_REMOTELY } from './constants';import logger from './logger';diff --git a/react/features/rtcstats/RTCStats.ts b/react/features/rtcstats/RTCStats.tsindex 4348c02046..241a849cd0 100644--- a/react/features/rtcstats/RTCStats.ts+++ b/react/features/rtcstats/RTCStats.ts@@ -1,17 +1,15 @@-// @ts-ignore-import { PC_CON_STATE_CHANGE,+/* eslint-disable lines-around-comment */+import {+ PC_CON_STATE_CHANGE,PC_STATE_CONNECTED,PC_STATE_FAILED-- // @ts-ignore+ // @ts-expect-error} from '@jitsi/rtcstats/events';-// eslint-disable-next-line lines-around-comment-// @ts-ignore+// @ts-expect-errorimport rtcstatsInit from '@jitsi/rtcstats/rtcstats';-// eslint-disable-next-line lines-around-comment-// @ts-ignore+// @ts-expect-errorimport traceInit from '@jitsi/rtcstats/trace-ws';-+/* eslint-enable lines-around-comment */import { createRTCStatsTraceCloseEvent } from '../analytics/AnalyticsEvents';import { sendAnalytics } from '../analytics/functions';diff --git a/react/features/rtcstats/functions.ts b/react/features/rtcstats/functions.tsindex 2629e917bd..dc94df3c27 100644--- a/react/features/rtcstats/functions.ts+++ b/react/features/rtcstats/functions.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport { jitsiLocalStorage } from '@jitsi/js-utils';import { getAmplitudeIdentity } from '../analytics/functions';diff --git a/react/features/settings/components/web/audio/MicrophoneEntry.tsx b/react/features/settings/components/web/audio/MicrophoneEntry.tsxindex 117ea59b68..2e62d67084 100644--- a/react/features/settings/components/web/audio/MicrophoneEntry.tsx+++ b/react/features/settings/components/web/audio/MicrophoneEntry.tsx@@ -3,8 +3,6 @@ import { makeStyles } from 'tss-react/mui';import Icon from '../../../../base/icons/components/Icon';import { IconCheck, IconExclamationSolid } from '../../../../base/icons/svg';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport JitsiMeetJS from '../../../../base/lib-jitsi-meet/_';import ContextMenuItem from '../../../../base/ui/components/web/ContextMenuItem';import { TEXT_OVERFLOW_TYPES } from '../../../../base/ui/constants.any';diff --git a/react/features/shared-video/components/web/AbstractVideoManager.ts b/react/features/shared-video/components/web/AbstractVideoManager.tsindex 26a5376401..50db313e74 100644--- a/react/features/shared-video/components/web/AbstractVideoManager.ts+++ b/react/features/shared-video/components/web/AbstractVideoManager.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport Logger from '@jitsi/logger';import throttle from 'lodash/throttle';import { PureComponent } from 'react';diff --git a/react/features/shared-video/components/web/SharedVideo.tsx b/react/features/shared-video/components/web/SharedVideo.tsxindex 1ecbc23603..2be6481b75 100644--- a/react/features/shared-video/components/web/SharedVideo.tsx+++ b/react/features/shared-video/components/web/SharedVideo.tsx@@ -8,10 +8,7 @@ import { getLocalParticipant } from '../../../base/participants/functions';import { getVerticalViewMaxWidth } from '../../../filmstrip/functions.web';import { getToolboxHeight } from '../../../toolbox/functions.web';-// @ts-ignoreimport VideoManager from './VideoManager';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport YoutubeVideoManager from './YoutubeVideoManager';interface IProps {diff --git a/react/features/stream-effects/noise-suppression/NoiseSuppressorWorklet.ts b/react/features/stream-effects/noise-suppression/NoiseSuppressorWorklet.tsindex 89e7555dd2..d7dcd88fcc 100644--- a/react/features/stream-effects/noise-suppression/NoiseSuppressorWorklet.ts+++ b/react/features/stream-effects/noise-suppression/NoiseSuppressorWorklet.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport { createRNNWasmModuleSync } from '@jitsi/rnnoise-wasm';import { leastCommonMultiple } from '../../base/util/math';diff --git a/react/features/stream-effects/rnnoise/index.ts b/react/features/stream-effects/rnnoise/index.tsindex 824de3bfc7..460e431917 100644--- a/react/features/stream-effects/rnnoise/index.ts+++ b/react/features/stream-effects/rnnoise/index.ts@@ -1,6 +1,6 @@// Script expects to find rnnoise webassembly binary in the same public path root, otherwise it won't load// During the build phase this needs to be taken care of manually-// @ts-ignore+// @ts-expect-errorimport { createRNNWasmModule } from '@jitsi/rnnoise-wasm';import RnnoiseProcessor from './RnnoiseProcessor';diff --git a/react/features/subtitles/components/AbstractCaptions.tsx b/react/features/subtitles/components/AbstractCaptions.tsxindex a4f5794059..b4e8968203 100644--- a/react/features/subtitles/components/AbstractCaptions.tsx+++ b/react/features/subtitles/components/AbstractCaptions.tsx@@ -18,7 +18,7 @@ export interface IAbstractCaptionsProps {* Mapped by id just to have the keys for convenience during the rendering* process.*/- _transcripts: Map<string, string>;+ _transcripts?: Map<string, string>;}/**diff --git a/react/features/subtitles/components/AbstractClosedCaptionButton.tsx b/react/features/subtitles/components/AbstractClosedCaptionButton.tsxindex a079857084..26d541d461 100644--- a/react/features/subtitles/components/AbstractClosedCaptionButton.tsx+++ b/react/features/subtitles/components/AbstractClosedCaptionButton.tsx@@ -1,12 +1,9 @@-/* eslint-disable lines-around-comment */-import { createToolbarEvent } from '../../analytics/AnalyticsEvents';import { sendAnalytics } from '../../analytics/functions';import { IReduxState } from '../../app/types';import { MEET_FEATURES } from '../../base/jwt/constants';import { isLocalParticipantModerator } from '../../base/participants/functions';import AbstractButton, { IProps as AbstractButtonProps } from '../../base/toolbox/components/AbstractButton';-// @ts-ignoreimport { maybeShowPremiumFeatureDialog } from '../../jaas/actions';export interface IAbstractProps extends AbstractButtonProps {diff --git a/react/features/subtitles/components/native/Captions.tsx b/react/features/subtitles/components/native/Captions.tsxindex fb4edc46c4..71dcbf0a6c 100644--- a/react/features/subtitles/components/native/Captions.tsx+++ b/react/features/subtitles/components/native/Captions.tsx@@ -62,5 +62,4 @@ class Captions extends AbstractCaptions<IProps> {}}-// @ts-ignoreexport default connect(_abstractMapStateToProps)(Captions);diff --git a/react/features/subtitles/components/web/Captions.tsx b/react/features/subtitles/components/web/Captions.tsxindex a69fdabfe6..3226318c9c 100644--- a/react/features/subtitles/components/web/Captions.tsx+++ b/react/features/subtitles/components/web/Captions.tsx@@ -84,5 +84,4 @@ function mapStateToProps(state: IReduxState) {};}-// @ts-ignoreexport default connect(mapStateToProps)(Captions);diff --git a/react/features/toolbox/components/native/OpenCarmodeButton.tsx b/react/features/toolbox/components/native/OpenCarmodeButton.tsxindex ef42a4f679..69376ff956 100644--- a/react/features/toolbox/components/native/OpenCarmodeButton.tsx+++ b/react/features/toolbox/components/native/OpenCarmodeButton.tsx@@ -9,7 +9,6 @@ import AbstractButton, { IProps as AbstractButtonProps } from '../../../base/tooimport { navigate }from '../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';import { screen } from '../../../mobile/navigation/routes';-/* eslint-enable lines-around-comment *//*** Implements an {@link AbstractButton} to open the carmode.diff --git a/react/features/toolbox/components/web/AudioSettingsButton.tsx b/react/features/toolbox/components/web/AudioSettingsButton.tsxindex 202e48755f..98b4e5929a 100644--- a/react/features/toolbox/components/web/AudioSettingsButton.tsx+++ b/react/features/toolbox/components/web/AudioSettingsButton.tsx@@ -6,8 +6,6 @@ import { IReduxState } from '../../../app/types';import { isMobileBrowser } from '../../../base/environment/utils';import { translate } from '../../../base/i18n/functions';import { IconArrowUp } from '../../../base/icons/svg';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport JitsiMeetJS from '../../../base/lib-jitsi-meet/_';import ToolboxButtonWithIcon from '../../../base/toolbox/components/web/ToolboxButtonWithIcon';import { toggleAudioSettings } from '../../../settings/actions';diff --git a/react/features/toolbox/components/web/ShareDesktopButton.ts b/react/features/toolbox/components/web/ShareDesktopButton.tsindex 3872982a79..3b286dad5a 100644--- a/react/features/toolbox/components/web/ShareDesktopButton.ts+++ b/react/features/toolbox/components/web/ShareDesktopButton.ts@@ -3,8 +3,6 @@ import { connect } from 'react-redux';import { IReduxState } from '../../../app/types';import { translate } from '../../../base/i18n/functions';import { IconScreenshare, IconStopScreenshare } from '../../../base/icons/svg';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport JitsiMeetJS from '../../../base/lib-jitsi-meet/_';import AbstractButton, { IProps as AbstractButtonProps } from '../../../base/toolbox/components/AbstractButton';import { isScreenVideoShared } from '../../../screen-share/functions';diff --git a/react/features/virtual-background/components/VirtualBackgrounds.tsx b/react/features/virtual-background/components/VirtualBackgrounds.tsxindex 9cc55b9e37..8ad10ef1a7 100644--- a/react/features/virtual-background/components/VirtualBackgrounds.tsx+++ b/react/features/virtual-background/components/VirtualBackgrounds.tsx@@ -1,7 +1,7 @@-// @ts-ignore+// @ts-expect-errorimport Bourne from '@hapi/bourne';// eslint-disable-next-line lines-around-comment-// @ts-ignore+// @ts-expect-errorimport { jitsiLocalStorage } from '@jitsi/js-utils/jitsi-local-storage';import React, { useCallback, useEffect, useState } from 'react';import { WithTranslation } from 'react-i18next';diff --git a/react/features/visitors/components/native/VisitorsCountLabel.tsx b/react/features/visitors/components/native/VisitorsCountLabel.tsxindex afde7c8640..c8d401650e 100644--- a/react/features/visitors/components/native/VisitorsCountLabel.tsx+++ b/react/features/visitors/components/native/VisitorsCountLabel.tsx@@ -3,8 +3,6 @@ import { useSelector } from 'react-redux';import { IReduxState } from '../../../app/types';import { IconUsers } from '../../../base/icons/svg';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport Label from '../../../base/label/components/native/Label';import BaseTheme from '../../../base/ui/components/BaseTheme.native';import { getVisitorsShortText, iAmVisitor } from '../../functions';