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) Remove unnecessary ts-ignores (#12412)
Robert Pintilii3eecf8063ff9
diff --git a/react/features/analytics/functions.ts b/react/features/analytics/functions.tsindex 52b62048f6..3a14bc9150 100644--- a/react/features/analytics/functions.ts+++ b/react/features/analytics/functions.ts@@ -1,7 +1,5 @@-/* eslint-disable lines-around-comment */-// @ts-ignore+// @ts-expect-errorimport { API_ID } from '../../../modules/API/constants';-// @ts-ignoreimport { getName as getAppName } from '../app/functions';import { IStore } from '../app/types';import { getAnalyticsRoomName } from '../base/conference/functions';@@ -14,10 +12,9 @@ import JitsiMeetJS, {browser} from '../base/lib-jitsi-meet';import { isAnalyticsEnabled } from '../base/lib-jitsi-meet/functions.any';-// @ts-ignore-import { loadScript } from '../base/util';import { getJitsiMeetGlobalNS } from '../base/util/helpers';import { inIframe } from '../base/util/iframeUtils';+import { loadScript } from '../base/util/loadScript';import { parseURIString } from '../base/util/uri';import AmplitudeHandler from './handlers/AmplitudeHandler';@@ -258,7 +255,7 @@ function _loadHandlers(scriptURLs: any[] = [], handlerConstructorOptions: Objectreturn Promise.all(promises).then(values => {for (const el of values) {- if (el.type === 'error') {+ if (el.type === 'error') { // @ts-ignorelogger.warn(`Failed to load ${el.url}: ${el.error}`);}}diff --git a/react/features/analytics/handlers/AmplitudeHandler.ts b/react/features/analytics/handlers/AmplitudeHandler.tsindex a994550912..0fa3634135 100644--- a/react/features/analytics/handlers/AmplitudeHandler.ts+++ b/react/features/analytics/handlers/AmplitudeHandler.ts@@ -1,10 +1,7 @@-/* eslint-disable lines-around-comment */import logger from '../logger';import AbstractHandler, { IEvent } from './AbstractHandler';-// @ts-ignoreimport { fixDeviceID } from './amplitude/fixDeviceID';-// @ts-ignoreimport amplitude from './amplitude/lib';/**@@ -13,6 +10,7 @@ import amplitude from './amplitude/lib';export default class AmplitudeHandler extends AbstractHandler {_deviceId: string;_userId: Object;+/*** Creates new instance of the Amplitude analytics handler.*@@ -36,6 +34,7 @@ export default class AmplitudeHandler extends AbstractHandler {amplitude.getInstance().init(amplitudeAPPKey); // @ts-ignorefixDeviceID(amplitude.getInstance()).then(() => {amplitude.getInstance().getDeviceId()+// @ts-ignore.then((deviceId: string) => {this._deviceId = deviceId;diff --git a/react/features/authentication/components/web/LoginDialog.tsx b/react/features/authentication/components/web/LoginDialog.tsxindex 577bbf3904..d847078f7e 100644--- a/react/features/authentication/components/web/LoginDialog.tsx+++ b/react/features/authentication/components/web/LoginDialog.tsx@@ -1,8 +1,7 @@-/* eslint-disable lines-around-comment */import React, { Component } from 'react';import { WithTranslation } from 'react-i18next';-// @ts-ignore+// @ts-expect-errorimport { connect } from '../../../../../connection';import { IState, IStore } from '../../../app/types';import { IJitsiConference } from '../../../base/conference/reducer';diff --git a/react/features/authentication/components/web/WaitForOwnerDialog.tsx b/react/features/authentication/components/web/WaitForOwnerDialog.tsxindex fda50fe2f5..41ea34ab32 100644--- a/react/features/authentication/components/web/WaitForOwnerDialog.tsx+++ b/react/features/authentication/components/web/WaitForOwnerDialog.tsx@@ -5,8 +5,6 @@ import { IStore } from '../../../app/types';import { translate } from '../../../base/i18n/functions';import { connect } from '../../../base/redux/functions';import Dialog from '../../../base/ui/components/web/Dialog';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { cancelWaitForOwner } from '../../actions.web';/**diff --git a/react/features/base/audio-only/actions.ts b/react/features/base/audio-only/actions.tsindex 39db9dcb7c..cdbaa1dd1e 100644--- a/react/features/base/audio-only/actions.ts+++ b/react/features/base/audio-only/actions.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport UIEvents from '../../../../service/UI/UIEvents';import { createAudioOnlyChangedEvent } from '../../analytics/AnalyticsEvents';import { sendAnalytics } from '../../analytics/functions';diff --git a/react/features/base/conference/actions.ts b/react/features/base/conference/actions.tsindex 480cd1c9ce..3db1d093e8 100644--- a/react/features/base/conference/actions.ts+++ b/react/features/base/conference/actions.ts@@ -1,13 +1,10 @@/* eslint-disable lines-around-comment */import { createStartMutedConfigurationEvent } from '../../analytics/AnalyticsEvents';import { sendAnalytics } from '../../analytics/functions';-// @ts-ignoreimport { appNavigate } from '../../app/actions';import { IState, IStore } from '../../app/types';import { endpointMessageReceived } from '../../subtitles/actions.any';-// @ts-ignoreimport { getReplaceParticipant } from '../config/functions';-// @ts-ignoreimport { disconnect } from '../connection/actions';import { JITSI_CONNECTION_CONFERENCE_KEY } from '../connection/constants';import { JitsiConferenceEvents, JitsiE2ePingEvents } from '../lib-jitsi-meet';diff --git a/react/features/base/conference/functions.ts b/react/features/base/conference/functions.tsindex a4cb478955..ee67ce36cf 100644--- a/react/features/base/conference/functions.ts+++ b/react/features/base/conference/functions.ts@@ -1,7 +1,6 @@import { sha512_256 as sha512 } from 'js-sha512';import _ from 'lodash';-// @ts-ignoreimport { getName } from '../../app/functions';import { IState, IStore } from '../../app/types';import { determineTranscriptionLanguage } from '../../transcribing/functions';diff --git a/react/features/base/config/reducer.ts b/react/features/base/config/reducer.tsindex bb7da4fef9..b622e12c69 100644--- a/react/features/base/config/reducer.ts+++ b/react/features/base/config/reducer.ts@@ -12,8 +12,6 @@ import {UPDATE_CONFIG} from './actionTypes';import { IConfig } from './configType';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { _cleanupConfig } from './functions';declare let interfaceConfig: any;diff --git a/react/features/base/devices/middleware.ts b/react/features/base/devices/middleware.tsindex ca8740b695..debd7e4d88 100644--- a/react/features/base/devices/middleware.ts+++ b/react/features/base/devices/middleware.ts@@ -1,6 +1,6 @@import { AnyAction } from 'redux';-// @ts-ignore+// @ts-expect-errorimport UIEvents from '../../../../service/UI/UIEvents';import { IStore } from '../../app/types';import { processExternalDeviceRequest } from '../../device-selection/functions';diff --git a/react/features/base/environment/utils.ts b/react/features/base/environment/utils.tsindex b88c5f2395..cd55115f87 100644--- a/react/features/base/environment/utils.ts+++ b/react/features/base/environment/utils.ts@@ -1,4 +1,3 @@-// @ts-ignoreimport Platform from '../react/Platform';/**diff --git a/react/features/base/i18n/i18next.ts b/react/features/base/i18n/i18next.tsindex 38623b7583..3ad28245c4 100644--- a/react/features/base/i18n/i18next.ts+++ b/react/features/base/i18n/i18next.ts@@ -10,8 +10,6 @@ import MAIN_RESOURCES from '../../../../lang/main.json';import TRANSLATION_LANGUAGES_RESOURCES from '../../../../lang/translation-languages.json';import { I18NEXT_INITIALIZED, LANGUAGE_CHANGED } from './actionTypes';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport languageDetector from './languageDetector';/**diff --git a/react/features/base/known-domains/middleware.ts b/react/features/base/known-domains/middleware.tsindex d742c6fb69..cf02fac555 100644--- a/react/features/base/known-domains/middleware.ts+++ b/react/features/base/known-domains/middleware.ts@@ -1,4 +1,3 @@-// @ts-ignoreimport { getDefaultURL } from '../../app/functions';import { IStore } from '../../app/types';import { APP_WILL_MOUNT } from '../app/actionTypes';diff --git a/react/features/base/logging/LogTransport.web.ts b/react/features/base/logging/LogTransport.web.tsindex e69de29bb2..ff8b4c5632 100644--- a/react/features/base/logging/LogTransport.web.ts+++ b/react/features/base/logging/LogTransport.web.ts@@ -0,0 +1 @@+export default {};diff --git a/react/features/base/logging/functions.ts b/react/features/base/logging/functions.tsindex 7008447055..73d4856664 100644--- a/react/features/base/logging/functions.ts+++ b/react/features/base/logging/functions.ts@@ -2,7 +2,6 @@import Logger, { getLogger as _getLogger } from '@jitsi/logger';import _ from 'lodash';-// @ts-ignoreimport LogTransport from './LogTransport';/**diff --git a/react/features/base/participants/middleware.ts b/react/features/base/participants/middleware.tsindex f5bd4275ff..618c75bfd9 100644--- a/react/features/base/participants/middleware.ts+++ b/react/features/base/participants/middleware.ts@@ -1,7 +1,7 @@import i18n from 'i18next';import { batch } from 'react-redux';-// @ts-ignore+// @ts-expect-errorimport UIEvents from '../../../../service/UI/UIEvents';import { IStore } from '../../app/types';import { approveParticipant } from '../../av-moderation/actions';diff --git a/react/features/base/settings/middleware.ts b/react/features/base/settings/middleware.tsindex 69423636cc..2b146c43e3 100644--- a/react/features/base/settings/middleware.ts+++ b/react/features/base/settings/middleware.ts@@ -16,7 +16,6 @@ import { parseURLParams } from '../util/parseURLParams';import { SETTINGS_UPDATED } from './actionTypes';import { updateSettings } from './actions';-// @ts-ignoreimport { handleCallIntegrationChange, handleCrashReportingChange } from './functions';import { ISettingsState } from './reducer';diff --git a/react/features/base/sounds/actions.ts b/react/features/base/sounds/actions.tsindex 7967fbc386..aa9b7a99e3 100644--- a/react/features/base/sounds/actions.ts+++ b/react/features/base/sounds/actions.ts@@ -1,5 +1,5 @@-/* eslint-disable lines-around-comment */import { Sounds } from '../config/configType';+// eslint-disable-next-line lines-around-comment// @ts-ignoreimport type { AudioElement } from '../media';@@ -11,7 +11,6 @@ import {_ADD_AUDIO_ELEMENT,_REMOVE_AUDIO_ELEMENT} from './actionTypes';-// @ts-ignoreimport { getSoundsPath } from './functions';import { getDisabledSounds } from './functions.any';diff --git a/react/features/base/tracks/actions.any.ts b/react/features/base/tracks/actions.any.tsindex ccdd8d4afb..40e8101efa 100644--- a/react/features/base/tracks/actions.any.ts+++ b/react/features/base/tracks/actions.any.ts@@ -7,9 +7,7 @@ import { getCurrentConference } from '../conference/functions';import { IJitsiConference } from '../conference/reducer';import { getMultipleVideoSendingSupportFeatureFlag, getMultipleVideoSupportFeatureFlag } from '../config/functions.any';import { JitsiTrackErrors, JitsiTrackEvents } from '../lib-jitsi-meet';-// eslint-disable-next-line lines-around-comment-// @ts-ignore-import { createLocalTrack } from '../lib-jitsi-meet/functions';+import { createLocalTrack } from '../lib-jitsi-meet/functions.any';import { setAudioMuted, setScreenshareMuted, setVideoMuted } from '../media/actions';import {CAMERA_FACING_MODE,diff --git a/react/features/base/tracks/actions.web.ts b/react/features/base/tracks/actions.web.tsindex a2d7922519..31fc2d5085 100644--- a/react/features/base/tracks/actions.web.ts+++ b/react/features/base/tracks/actions.web.ts@@ -1,5 +1,5 @@/* eslint-disable lines-around-comment */-// @ts-ignore+// @ts-expect-errorimport { AUDIO_ONLY_SCREEN_SHARE_NO_TRACK } from '../../../../modules/UI/UIErrors';import { IState, IStore } from '../../app/types';import { showModeratedNotification } from '../../av-moderation/actions';diff --git a/react/features/base/tracks/middleware.ts b/react/features/base/tracks/middleware.tsindex 540e1adab5..07d288482f 100644--- a/react/features/base/tracks/middleware.ts+++ b/react/features/base/tracks/middleware.ts@@ -42,8 +42,6 @@ import {trackMuteUnmuteFailed,trackNoDataFromSourceNotificationInfoChanged,trackRemoved-- // @ts-ignore} from './actions';import {getLocalTrack,diff --git a/react/features/base/util/uri.ts b/react/features/base/util/uri.tsindex 9fe1846193..0327e0a53c 100644--- a/react/features/base/util/uri.ts+++ b/react/features/base/util/uri.ts@@ -1,6 +1,4 @@import { parseURLParams } from './parseURLParams';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { normalizeNFKC } from './strings';/**diff --git a/react/features/breakout-rooms/actions.ts b/react/features/breakout-rooms/actions.tsindex 451c2eba6a..208d71640c 100644--- a/react/features/breakout-rooms/actions.ts+++ b/react/features/breakout-rooms/actions.ts@@ -1,4 +1,3 @@-/* eslint-disable lines-around-comment */import i18next from 'i18next';import _ from 'lodash';@@ -15,14 +14,12 @@ import { getCurrentConference } from '../base/conference/functions';import { setAudioMuted, setVideoMuted } from '../base/media/actions';import { MEDIA_TYPE } from '../base/media/constants';import { getRemoteParticipants } from '../base/participants/functions';+import { createDesiredLocalTracks } from '../base/tracks/actions';import {getLocalTracks,isLocalCameraTrackMuted,isLocalTrackMuted- // @ts-ignore-} from '../base/tracks';-// @ts-ignore-import { createDesiredLocalTracks } from '../base/tracks/actions';+} from '../base/tracks/functions';import { clearNotifications, showNotification } from '../notifications/actions';import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';@@ -186,6 +183,7 @@ export function moveToRoom(roomId?: string) {// eslint-disable-next-line no-new-wrappers_roomId = new String(id);+// @ts-ignore_roomId.domain = domainParts.join('@');}diff --git a/react/features/chat/actions.web.ts b/react/features/chat/actions.web.tsindex e0ea8d66a1..f7163c6e6e 100644--- a/react/features/chat/actions.web.ts+++ b/react/features/chat/actions.web.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport VideoLayout from '../../../modules/UI/videolayout/VideoLayout';import { IStore } from '../app/types';import { getParticipantById } from '../base/participants/functions';diff --git a/react/features/chat/components/AbstractChatPrivacyDialog.tsx b/react/features/chat/components/AbstractChatPrivacyDialog.tsxindex 50d8f0e608..175063dcf3 100644--- a/react/features/chat/components/AbstractChatPrivacyDialog.tsx+++ b/react/features/chat/components/AbstractChatPrivacyDialog.tsx@@ -4,8 +4,6 @@ import { WithTranslation } from 'react-i18next';import { IState, IStore } from '../../app/types';import { getParticipantById } from '../../base/participants/functions';import { Participant } from '../../base/participants/types';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { sendMessage, setPrivateMessageRecipient } from '../actions';interface Props extends WithTranslation {diff --git a/react/features/conference/components/web/RaisedHandsCountLabel.tsx b/react/features/conference/components/web/RaisedHandsCountLabel.tsxindex 785bad3ad6..bb664e3add 100644--- a/react/features/conference/components/web/RaisedHandsCountLabel.tsx+++ b/react/features/conference/components/web/RaisedHandsCountLabel.tsx@@ -1,5 +1,3 @@-/* eslint-disable lines-around-comment */-import { Theme } from '@mui/material';import React, { useCallback } from 'react';import { useTranslation } from 'react-i18next';@@ -9,9 +7,9 @@ import { makeStyles } from 'tss-react/mui';import { IState } from '../../../app/types';import { IconRaisedHand } from '../../../base/icons/svg';import Label from '../../../base/label/components/web/Label';+// eslint-disable-next-line lines-around-comment// @ts-ignoreimport { Tooltip } from '../../../base/tooltip';-// @ts-ignoreimport { open as openParticipantsPane } from '../../../participants-pane/actions';const useStyles = makeStyles()((theme: Theme) => {diff --git a/react/features/feedback/actions.ts b/react/features/feedback/actions.tsindex ad5606b9b2..0965fc3ae0 100644--- a/react/features/feedback/actions.ts+++ b/react/features/feedback/actions.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport { FEEDBACK_REQUEST_IN_PROGRESS } from '../../../modules/UI/UIErrors';import { IStore } from '../app/types';import { IJitsiConference } from '../base/conference/reducer';diff --git a/react/features/filmstrip/components/web/Filmstrip.tsx b/react/features/filmstrip/components/web/Filmstrip.tsxindex cbfd81b934..5101589baa 100644--- a/react/features/filmstrip/components/web/Filmstrip.tsx+++ b/react/features/filmstrip/components/web/Filmstrip.tsx@@ -51,7 +51,6 @@ import {// @ts-ignoreimport AudioTracksContainer from './AudioTracksContainer';-// @ts-ignoreimport Thumbnail from './Thumbnail';// @ts-ignoreimport ThumbnailWrapper from './ThumbnailWrapper';diff --git a/react/features/filmstrip/components/web/Thumbnail.tsx b/react/features/filmstrip/components/web/Thumbnail.tsxindex 4a2b876f18..07ecb0e48a 100644--- a/react/features/filmstrip/components/web/Thumbnail.tsx+++ b/react/features/filmstrip/components/web/Thumbnail.tsx@@ -32,7 +32,6 @@ import {import { Participant } from '../../../base/participants/types';import { ASPECT_RATIO_NARROW } from '../../../base/responsive-ui/constants';import { isTestModeEnabled } from '../../../base/testing/functions';-// @ts-ignoreimport { trackStreamingStatusChanged, updateLastTrackVideoMediaEvent } from '../../../base/tracks/actions';import {getLocalAudioTrack,diff --git a/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx b/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsxindex 0931654134..5e95f96260 100644--- a/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx+++ b/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx@@ -11,7 +11,6 @@ import {isNameReadOnly} from '../../../base/config/functions.any';import { isScreenShareParticipantById } from '../../../base/participants/functions';-// @ts-ignoreimport DisplayName from '../../../display-name/components/web/DisplayName';import { THUMBNAIL_TYPE } from '../../constants';diff --git a/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx b/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsxindex 6358243e29..9d2530ba3a 100644--- a/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx+++ b/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx@@ -8,15 +8,12 @@ import { IState } from '../../../app/types';import { getMultipleVideoSupportFeatureFlag } from '../../../base/config/functions.any';import { isMobileBrowser } from '../../../base/environment/utils';import { isScreenShareParticipantById } from '../../../base/participants/functions';-// @ts-ignoreimport ConnectionIndicator from '../../../connection-indicator/components/web/ConnectionIndicator';import { STATS_POPOVER_POSITION, THUMBNAIL_TYPE } from '../../constants';// @ts-ignoreimport { getIndicatorsTooltipPosition } from '../../functions.web';-// @ts-ignoreimport PinnedIndicator from './PinnedIndicator';-// @ts-ignoreimport RaisedHandIndicator from './RaisedHandIndicator';// @ts-ignoreimport StatusIndicators from './StatusIndicators';diff --git a/react/features/participants-pane/components/web/LobbyParticipantItem.tsx b/react/features/participants-pane/components/web/LobbyParticipantItem.tsxindex e69575efd7..7cd5431dd4 100644--- a/react/features/participants-pane/components/web/LobbyParticipantItem.tsx+++ b/react/features/participants-pane/components/web/LobbyParticipantItem.tsx@@ -1,5 +1,3 @@-/* eslint-disable lines-around-comment */-import { Theme } from '@mui/material';import React, { useCallback, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';@@ -13,10 +11,10 @@ import Button from '../../../base/ui/components/web/Button';import ContextMenu from '../../../base/ui/components/web/ContextMenu';import ContextMenuItemGroup from '../../../base/ui/components/web/ContextMenuItemGroup';import { BUTTON_TYPES } from '../../../base/ui/constants';+// eslint-disable-next-line lines-around-comment// @ts-ignoreimport { showLobbyChatButton } from '../../../lobby/functions';import { ACTION_TRIGGER, MEDIA_STATE } from '../../constants';-// @ts-ignoreimport { useLobbyActions } from '../../hooks';import ParticipantItem from './ParticipantItem';diff --git a/react/features/participants-pane/components/web/LobbyParticipants.tsx b/react/features/participants-pane/components/web/LobbyParticipants.tsxindex c588f90ddd..2e386d81a7 100644--- a/react/features/participants-pane/components/web/LobbyParticipants.tsx+++ b/react/features/participants-pane/components/web/LobbyParticipants.tsx@@ -17,7 +17,6 @@ import { getKnockingParticipants, getLobbyEnabled } from '../../../lobby/functio// @ts-ignoreimport { Drawer, JitsiPortal } from '../../../toolbox/components/web';import { showOverflowDrawer } from '../../../toolbox/functions.web';-// @ts-ignoreimport { useLobbyActions, useParticipantDrawer } from '../../hooks';// @ts-ignorediff --git a/react/features/participants-pane/components/web/MeetingParticipants.tsx b/react/features/participants-pane/components/web/MeetingParticipants.tsxindex 7cbd48bf2c..70e9ab417d 100644--- a/react/features/participants-pane/components/web/MeetingParticipants.tsx+++ b/react/features/participants-pane/components/web/MeetingParticipants.tsx@@ -22,7 +22,6 @@ import { showOverflowDrawer } from '../../../toolbox/functions.web';// @ts-ignoreimport { muteRemote } from '../../../video-menu/actions.any';import { getSortedParticipantIds, shouldRenderInviteButton } from '../../functions';-// @ts-ignoreimport { useParticipantDrawer } from '../../hooks';import { InviteButton } from './InviteButton';diff --git a/react/features/participants-pane/components/web/ParticipantsPane.tsx b/react/features/participants-pane/components/web/ParticipantsPane.tsxindex 135eec0d98..3aaaea1b89 100644--- a/react/features/participants-pane/components/web/ParticipantsPane.tsx+++ b/react/features/participants-pane/components/web/ParticipantsPane.tsx@@ -17,7 +17,6 @@ import { BUTTON_TYPES } from '../../../base/ui/constants';import { isAddBreakoutRoomButtonVisible } from '../../../breakout-rooms/functions';// @ts-ignoreimport { MuteEveryoneDialog } from '../../../video-menu/components/';-// @ts-ignoreimport { close } from '../../actions';import {findAncestorByClass,diff --git a/react/features/participants-pane/functions.ts b/react/features/participants-pane/functions.tsindex 523bd49651..61ec240b4b 100644--- a/react/features/participants-pane/functions.ts+++ b/react/features/participants-pane/functions.ts@@ -19,8 +19,6 @@ import {} from '../base/participants/functions';import { Participant } from '../base/participants/types';import { toState } from '../base/redux/functions';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { normalizeAccents } from '../base/util/strings';import { isInBreakoutRoom } from '../breakout-rooms/functions';diff --git a/react/features/power-monitor/reducer.ts b/react/features/power-monitor/reducer.tsindex e90a81c1c6..1585e93767 100644--- a/react/features/power-monitor/reducer.ts+++ b/react/features/power-monitor/reducer.ts@@ -1,4 +1,4 @@-// @ts-ignore+// @ts-expect-errorimport { Transport } from '../../../modules/transport';import ReducerRegistry from '../base/redux/ReducerRegistry';import { set } from '../base/redux/functions';diff --git a/react/features/prejoin/actions.ts b/react/features/prejoin/actions.tsindex b105c97171..98c20334fe 100644--- a/react/features/prejoin/actions.ts+++ b/react/features/prejoin/actions.ts@@ -3,25 +3,20 @@ import { v4 as uuidv4 } from 'uuid';import { IStore } from '../app/types';import { updateConfig } from '../base/config/actions';-// @ts-ignoreimport { getDialOutStatusUrl, getDialOutUrl } from '../base/config/functions';import { browser } from '../base/lib-jitsi-meet';-// @ts-ignoreimport { createLocalTrack } from '../base/lib-jitsi-meet/functions';import { MEDIA_TYPE } from '../base/media/constants';import { isVideoMutedByUser } from '../base/media/functions';import { updateSettings } from '../base/settings/actions';+import { replaceLocalTrack, trackAdded } from '../base/tracks/actions';import {createLocalTracksF,getLocalAudioTrack,getLocalTracks,- getLocalVideoTrack,- replaceLocalTrack,- trackAdded- // @ts-ignore-} from '../base/tracks';-// @ts-ignore-import { openURLInBrowser } from '../base/util';+ getLocalVideoTrack+} from '../base/tracks/functions';+import { openURLInBrowser } from '../base/util/openURLInBrowser';// @ts-ignoreimport { executeDialOutRequest, executeDialOutStatusRequest, getDialInfoPageURL } from '../invite/functions';import { showErrorNotification } from '../notifications/actions';@@ -386,7 +381,7 @@ export function replaceAudioTrackById(deviceId: string) {* @param {string} deviceId - The deviceId of the camera.* @returns {Function}*/-export function replaceVideoTrackById(deviceId: Object) {+export function replaceVideoTrackById(deviceId: string) {return async (dispatch: IStore['dispatch'], getState: IStore['getState']) => {try {const tracks = getState()['features/base/tracks'];diff --git a/react/features/reactions/middleware.ts b/react/features/reactions/middleware.tsindex 9f7ee2e1c5..6a6a1873cd 100644--- a/react/features/reactions/middleware.ts+++ b/react/features/reactions/middleware.ts@@ -5,8 +5,6 @@ import { sendAnalytics } from '../analytics/functions';import { IStore } from '../app/types';import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../base/app/actionTypes';import { CONFERENCE_JOIN_IN_PROGRESS, SET_START_REACTIONS_MUTED } from '../base/conference/actionTypes';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { setStartReactionsMuted } from '../base/conference/actions';import {getParticipantById,diff --git a/react/features/screen-share/components/ShareAudioDialog.tsx b/react/features/screen-share/components/ShareAudioDialog.tsxindex 8913392202..ff4ded9081 100644--- a/react/features/screen-share/components/ShareAudioDialog.tsx+++ b/react/features/screen-share/components/ShareAudioDialog.tsx@@ -6,8 +6,6 @@ import { translate } from '../../base/i18n/functions';import { connect } from '../../base/redux/functions';import { updateSettings } from '../../base/settings/actions';import { shouldHideShareAudioHelper } from '../../base/settings/functions.any';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { toggleScreensharing } from '../../base/tracks/actions';import Checkbox from '../../base/ui/components/web/Checkbox';import Dialog from '../../base/ui/components/web/Dialog';diff --git a/react/features/screen-share/components/ShareScreenWarningDialog.tsx b/react/features/screen-share/components/ShareScreenWarningDialog.tsxindex 2372d41aee..5e5969b726 100644--- a/react/features/screen-share/components/ShareScreenWarningDialog.tsx+++ b/react/features/screen-share/components/ShareScreenWarningDialog.tsx@@ -4,8 +4,6 @@ import { WithTranslation } from 'react-i18next';import { IStore } from '../../app/types';import { translate } from '../../base/i18n/functions';import { connect } from '../../base/redux/functions';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { toggleScreensharing } from '../../base/tracks/actions';import Dialog from '../../base/ui/components/web/Dialog';diff --git a/react/features/security/components/security-dialog/web/SecurityDialog.tsx b/react/features/security/components/security-dialog/web/SecurityDialog.tsxindex 285cf6a6ff..4ce92a81b0 100644--- a/react/features/security/components/security-dialog/web/SecurityDialog.tsx+++ b/react/features/security/components/security-dialog/web/SecurityDialog.tsx@@ -2,8 +2,7 @@import React, { useEffect, useState } from 'react';import { IState } from '../../../../app/types';-// @ts-ignore-import { setPassword as setPass } from '../../../../base/conference';+import { setPassword as setPass } from '../../../../base/conference/actions';import { isLocalParticipantModerator } from '../../../../base/participants/functions';import { connect } from '../../../../base/redux/functions';import Dialog from '../../../../base/ui/components/web/Dialog';diff --git a/react/features/settings/components/web/MoreTab.tsx b/react/features/settings/components/web/MoreTab.tsxindex 3ba7043c55..45a2cc9b1a 100644--- a/react/features/settings/components/web/MoreTab.tsx+++ b/react/features/settings/components/web/MoreTab.tsx@@ -1,7 +1,7 @@import React from 'react';import { WithTranslation } from 'react-i18next';-// @ts-ignore+// @ts-expect-errorimport keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut';import AbstractDialogTab, {Props as AbstractDialogTabPropsdiff --git a/react/features/settings/components/web/ProfileTab.tsx b/react/features/settings/components/web/ProfileTab.tsxindex 6c2ff3b2bc..5817109409 100644--- a/react/features/settings/components/web/ProfileTab.tsx+++ b/react/features/settings/components/web/ProfileTab.tsx@@ -2,7 +2,7 @@import React from 'react';import { WithTranslation } from 'react-i18next';-// @ts-ignore+// @ts-expect-errorimport UIEvents from '../../../../../service/UI/UIEvents';import { createProfilePanelButtonEvent } from '../../../analytics/AnalyticsEvents';import { sendAnalytics } from '../../../analytics/functions';diff --git a/react/features/settings/components/web/SettingsDialog.tsx b/react/features/settings/components/web/SettingsDialog.tsxindex 1d51e3309b..da73dd43f7 100644--- a/react/features/settings/components/web/SettingsDialog.tsx+++ b/react/features/settings/components/web/SettingsDialog.tsx@@ -6,7 +6,8 @@ import React, { Component } from 'react';import { IState } from '../../../app/types';import { getAvailableDevices } from '../../../base/devices/actions';// @ts-ignore-import { DialogWithTabs, hideDialog } from '../../../base/dialog';+import { DialogWithTabs } from '../../../base/dialog';+import { hideDialog } from '../../../base/dialog/actions';import { connect } from '../../../base/redux/functions';import { withPixelLineHeight } from '../../../base/styles/functions.web';// @ts-ignorediff --git a/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx b/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsxindex d0b98d0c19..054e778098 100644--- a/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx+++ b/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx@@ -7,8 +7,7 @@ import { makeStyles } from 'tss-react/mui';import Icon from '../../../base/icons/components/Icon';import { IconSearch } from '../../../base/icons/svg';-// @ts-ignore-import { getFieldValue } from '../../../base/react';+import { getFieldValue } from '../../../base/react/functions';import { withPixelLineHeight } from '../../../base/styles/functions.web';import { MOBILE_BREAKPOINT } from '../../constants';// @ts-ignorediff --git a/react/features/subtitles/components/LanguageSelectorDialog.web.tsx b/react/features/subtitles/components/LanguageSelectorDialog.web.tsxindex 5f23f7ae23..86728b8eea 100644--- a/react/features/subtitles/components/LanguageSelectorDialog.web.tsx+++ b/react/features/subtitles/components/LanguageSelectorDialog.web.tsx@@ -14,7 +14,6 @@ import { connect } from '../../base/redux/functions';import Dialog from '../../base/ui/components/web/Dialog';// @ts-ignoreimport { openSettingsDialog } from '../../settings/actions';-// @ts-ignoreimport { SETTINGS_TABS } from '../../settings/constants';// @ts-ignoreimport { setRequestingSubtitles, toggleLanguageSelectorDialog, updateTranslationLanguage } from '../actions';diff --git a/react/features/toolbox/components/web/EndConferenceButton.tsx b/react/features/toolbox/components/web/EndConferenceButton.tsxindex a4c1ed3d14..bc2fc0fdd4 100644--- a/react/features/toolbox/components/web/EndConferenceButton.tsx+++ b/react/features/toolbox/components/web/EndConferenceButton.tsx@@ -2,8 +2,7 @@ import React, { useCallback } from 'react';import { useTranslation } from 'react-i18next';import { useDispatch, useSelector } from 'react-redux';-// @ts-ignore-import { endConference } from '../../../base/conference';+import { endConference } from '../../../base/conference/actions';import { isLocalParticipantModerator } from '../../../base/participants/functions';import Button from '../../../base/ui/components/web/Button';import { BUTTON_TYPES } from '../../../base/ui/constants';diff --git a/react/features/toolbox/components/web/LeaveConferenceButton.tsx b/react/features/toolbox/components/web/LeaveConferenceButton.tsxindex 14756d266e..b0c239bf95 100644--- a/react/features/toolbox/components/web/LeaveConferenceButton.tsx+++ b/react/features/toolbox/components/web/LeaveConferenceButton.tsx@@ -4,8 +4,6 @@ import { useDispatch } from 'react-redux';import { createToolbarEvent } from '../../../analytics/AnalyticsEvents';import { sendAnalytics } from '../../../analytics/functions';-// eslint-disable-next-line lines-around-comment-// @ts-ignoreimport { leaveConference } from '../../../base/conference/actions';import Button from '../../../base/ui/components/web/Button';import { BUTTON_TYPES } from '../../../base/ui/constants';diff --git a/react/features/toolbox/components/web/Toolbox.tsx b/react/features/toolbox/components/web/Toolbox.tsxindex 877574ede7..e5241ce960 100644--- a/react/features/toolbox/components/web/Toolbox.tsx+++ b/react/features/toolbox/components/web/Toolbox.tsx@@ -4,7 +4,7 @@ import React, { Component } from 'react';import { WithTranslation } from 'react-i18next';import { batch } from 'react-redux';-// @ts-ignore+// @ts-expect-errorimport keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut';// @ts-ignoreimport { isSpeakerStatsDisabled } from '../../../../features/speaker-stats/functions';@@ -51,7 +51,6 @@ import { NoiseSuppressionButton } from '../../../noise-suppression/components';import {close as closeParticipantsPane,open as openParticipantsPane- // @ts-ignore} from '../../../participants-pane/actions';// @ts-ignoreimport { ParticipantsPaneButton } from '../../../participants-pane/components/web';@@ -109,7 +108,6 @@ import {// @ts-ignore} from '../../actions';import { NOTIFY_CLICK_MODE, NOT_APPLICABLE, THRESHOLDS } from '../../constants';-// @ts-ignoreimport { isDesktopShareButtonDisabled, isToolboxVisible } from '../../functions';import { getJwtDisabledButtons } from '../../functions.any';// @ts-ignorediff --git a/react/features/welcome/constants.tsx b/react/features/welcome/constants.tsxindex 886564a289..5defd71c4d 100644--- a/react/features/welcome/constants.tsx+++ b/react/features/welcome/constants.tsx@@ -2,7 +2,6 @@import React from 'react';import { IconEventNote, IconRestore, IconSettings } from '../base/icons/svg';-// @ts-ignoreimport BaseTheme from '../base/ui/components/BaseTheme';// @ts-ignorediff --git a/react/features/whiteboard/components/web/Whiteboard.tsx b/react/features/whiteboard/components/web/Whiteboard.tsxindex 3f849c3d15..2bf1f34c30 100644--- a/react/features/whiteboard/components/web/Whiteboard.tsx+++ b/react/features/whiteboard/components/web/Whiteboard.tsx@@ -4,13 +4,12 @@ import clsx from 'clsx';import React, { useCallback, useEffect, useRef } from 'react';import { useSelector } from 'react-redux';-// @ts-ignore+// @ts-expect-errorimport Filmstrip from '../../../../../modules/UI/videolayout/Filmstrip';import { IState } from '../../../app/types';import { getLocalParticipant } from '../../../base/participants/functions';// @ts-ignoreimport { getVerticalViewMaxWidth } from '../../../filmstrip/functions.web';-// @ts-ignoreimport { getToolboxHeight } from '../../../toolbox/functions.web';// @ts-ignoreimport { shouldDisplayTileView } from '../../../video-layout/functions.any';