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 (#12491)
Robert Pintiliib52b4c2a78ac
diff --git a/globals.d.ts b/globals.d.tsindex 66f15f66e9..e61ea3118d 100644--- a/globals.d.ts+++ b/globals.d.ts@@ -9,6 +9,11 @@ declare global {UI: any;API: any;conference: any;+ debugLogs: any;+ keyboardshortcut: {+ registerShortcut: Function;+ unregisterShortcut: Function;+ }};const interfaceConfig: any;diff --git a/react/features/authentication/components/web/LoginDialog.tsx b/react/features/authentication/components/web/LoginDialog.tsxindex f16ef83f7c..72658b1ce3 100644--- a/react/features/authentication/components/web/LoginDialog.tsx+++ b/react/features/authentication/components/web/LoginDialog.tsx@@ -68,7 +68,7 @@ interface IProps extends WithTranslation {/*** The type of the React {@code Component} state of {@link LoginDialog}.*/-type State = {+interface IState {/*** Authentication process starts before joining the conference room.@@ -84,14 +84,14 @@ type State = {* The user entered local participant name.*/username: string;-};+}/*** Component that renders the login in conference dialog.** @returns {React$Element<any>}*/-class LoginDialog extends Component<IProps, State> {+class LoginDialog extends Component<IProps, IState> {/*** Initializes a new {@code LoginDialog} instance.*diff --git a/react/features/base/audio-only/actions.ts b/react/features/base/audio-only/actions.tsindex cdbaa1dd1e..3560dafabf 100644--- a/react/features/base/audio-only/actions.ts+++ b/react/features/base/audio-only/actions.ts@@ -8,8 +8,6 @@ import { SET_AUDIO_ONLY } from './actionTypes';import logger from './logger';-declare let APP: any;-/*** Sets the audio-only flag for the current JitsiConference.*diff --git a/react/features/base/avatar/components/AbstractStatelessAvatar.tsx b/react/features/base/avatar/components/AbstractStatelessAvatar.tsxindex c1c22a7c36..6b10cb34df 100644--- a/react/features/base/avatar/components/AbstractStatelessAvatar.tsx+++ b/react/features/base/avatar/components/AbstractStatelessAvatar.tsx@@ -1,6 +1,6 @@import { PureComponent } from 'react';-export type Props = {+export interface IProps {/*** Color of the (initials based) avatar, if needed.@@ -31,13 +31,13 @@ export type Props = {* The URL of the avatar to render.*/url?: string | Function;-};+}/*** Implements an abstract stateless avatar component that renders an avatar purely from what gets passed through* props.*/-export default class AbstractStatelessAvatar<P extends Props> extends PureComponent<P> {+export default class AbstractStatelessAvatar<P extends IProps> extends PureComponent<P> {/*** Checks if the passed prop is a loaded icon or not.*diff --git a/react/features/base/avatar/components/native/StatelessAvatar.js b/react/features/base/avatar/components/native/StatelessAvatar.jsindex 3985685de2..bc944b492d 100644--- a/react/features/base/avatar/components/native/StatelessAvatar.js+++ b/react/features/base/avatar/components/native/StatelessAvatar.js@@ -5,7 +5,7 @@ import { Image, Text, View } from 'react-native';import { Icon } from '../../../icons';import { type StyleType } from '../../../styles';-import AbstractStatelessAvatar, { type Props as AbstractProps } from '../AbstractStatelessAvatar';+import AbstractStatelessAvatar, { type IProps as AbstractProps } from '../AbstractStatelessAvatar';import styles from './styles';diff --git a/react/features/base/avatar/components/web/StatelessAvatar.tsx b/react/features/base/avatar/components/web/StatelessAvatar.tsxindex 59f9fb9e84..f805089b83 100644--- a/react/features/base/avatar/components/web/StatelessAvatar.tsx+++ b/react/features/base/avatar/components/web/StatelessAvatar.tsx@@ -3,10 +3,10 @@ import clsx from 'clsx';import React from 'react';import Icon from '../../../icons/components/Icon';-import AbstractStatelessAvatar, { type Props as AbstractProps } from '../AbstractStatelessAvatar';+import AbstractStatelessAvatar, { type IProps as AbstractProps } from '../AbstractStatelessAvatar';import { PRESENCE_AVAILABLE_COLOR, PRESENCE_AWAY_COLOR, PRESENCE_BUSY_COLOR, PRESENCE_IDLE_COLOR } from '../styles';-type Props = AbstractProps & {+interface IProps extends AbstractProps {/*** External class name passed through props.@@ -42,7 +42,7 @@ type Props = AbstractProps & {* Indicates whether to load the avatar using CORS or not.*/useCORS?: boolean;-};+}/*** Creates the styles for the component.@@ -115,14 +115,14 @@ const styles = () => {* Implements a stateless avatar component that renders an avatar purely from what gets passed through* props.*/-class StatelessAvatar extends AbstractStatelessAvatar<Props> {+class StatelessAvatar extends AbstractStatelessAvatar<IProps> {/*** Instantiates a new {@code Component}.** @inheritdoc*/- constructor(props: Props) {+ constructor(props: IProps) {super(props);this._onAvatarLoadError = this._onAvatarLoadError.bind(this);diff --git a/react/features/base/components/participants-pane-list/ListItem.tsx b/react/features/base/components/participants-pane-list/ListItem.tsxindex e16b774f6e..aed7a081ad 100644--- a/react/features/base/components/participants-pane-list/ListItem.tsx+++ b/react/features/base/components/participants-pane-list/ListItem.tsx@@ -7,7 +7,7 @@ import { isMobileBrowser } from '../../environment/utils';import { withPixelLineHeight } from '../../styles/functions.web';import participantsPaneTheme from '../themes/participantsPaneTheme.json';-type Props = {+interface IProps {/*** List item actions.@@ -74,7 +74,7 @@ type Props = {*/trigger: string;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -188,7 +188,7 @@ const ListItem = ({testId,textChildren,trigger-}: Props) => {+}: IProps) => {const { classes: styles, cx } = useStyles();const _isMobile = isMobileBrowser();let timeoutHandler: number;diff --git a/react/features/base/config/reducer.ts b/react/features/base/config/reducer.tsindex d8a95f2e60..7f475d74eb 100644--- a/react/features/base/config/reducer.ts+++ b/react/features/base/config/reducer.ts@@ -14,8 +14,6 @@ import {import { IConfig } from './configType';import { _cleanupConfig } from './functions';-declare let interfaceConfig: any;-/*** The initial state of the feature base/config when executing in a* non-React Native environment. The mandatory configuration to be passed todiff --git a/react/features/base/dialog/components/web/AbstractDialogTab.ts b/react/features/base/dialog/components/web/AbstractDialogTab.tsindex 725c3d8aa6..b734bfb1cb 100644--- a/react/features/base/dialog/components/web/AbstractDialogTab.ts+++ b/react/features/base/dialog/components/web/AbstractDialogTab.ts@@ -3,7 +3,7 @@ import { Component } from 'react';/*** The type of the React {@code Component} props of {@link AbstractDialogTab}.*/-export type Props = {+export interface IProps {/*** Function that closes the dialog.@@ -19,7 +19,7 @@ export type Props = {* The id of the tab.*/tabId: number;-};+}/**@@ -27,7 +27,7 @@ export type Props = {** @augments Component*/-class AbstractDialogTab<P extends Props, S> extends Component<P, S> {+class AbstractDialogTab<P extends IProps, S> extends Component<P, S> {/*** Initializes a new {@code AbstractDialogTab} instance.*diff --git a/react/features/base/environment/environment.ts b/react/features/base/environment/environment.tsindex 4c06727209..920f964b12 100644--- a/react/features/base/environment/environment.ts+++ b/react/features/base/environment/environment.ts@@ -25,8 +25,6 @@ const browserNameToCheck = {safari: browser.isSafari.bind(browser)};-declare let interfaceConfig: any;-/*** Returns whether or not jitsi is optimized and targeted for the provided* browser name.diff --git a/react/features/base/i18n/i18next.ts b/react/features/base/i18n/i18next.tsindex 3ad28245c4..50d1b67e10 100644--- a/react/features/base/i18n/i18next.ts+++ b/react/features/base/i18n/i18next.ts@@ -1,5 +1,3 @@-declare let APP: any;-import COUNTRIES_RESOURCES from 'i18n-iso-countries/langs/en.json';import i18next from 'i18next';import I18nextXHRBackend from 'i18next-xhr-backend';diff --git a/react/features/base/i18n/languageDetector.web.ts b/react/features/base/i18n/languageDetector.web.tsindex 6be8289ba4..56e0269f16 100644--- a/react/features/base/i18n/languageDetector.web.ts+++ b/react/features/base/i18n/languageDetector.web.ts@@ -3,8 +3,6 @@ import BrowserLanguageDetector from 'i18next-browser-languagedetector';import configLanguageDetector from './configLanguageDetector';import customNavigatorDetector from './customNavigatorDetector';-declare let interfaceConfig: any;-/*** The ordered list (by name) of language detectors to be utilized as backends* by the singleton language detector for Web.diff --git a/react/features/base/icons/components/Icon.tsx b/react/features/base/icons/components/Icon.tsxindex 7d720f5b72..cf78639ab5 100644--- a/react/features/base/icons/components/Icon.tsx+++ b/react/features/base/icons/components/Icon.tsx@@ -6,7 +6,7 @@ import { Container } from '../../react/base';// @ts-ignoreimport { styleTypeToObject } from '../../styles';-type Props = {+interface IProps {/*** The id of the element this button icon controls.@@ -102,7 +102,7 @@ type Props = {* TabIndex for the Icon.*/tabIndex?: number;-};+}export const DEFAULT_COLOR = navigator.product === 'ReactNative' ? 'white' : undefined;export const DEFAULT_SIZE = navigator.product === 'ReactNative' ? 36 : 22;@@ -110,10 +110,10 @@ export const DEFAULT_SIZE = navigator.product === 'ReactNative' ? 36 : 22;/*** Implements an Icon component that takes a loaded SVG file as prop and renders it as an icon.*- * @param {Props} props - The props of the component.+ * @param {IProps} props - The props of the component.* @returns {ReactElement}*/-export default function Icon(props: Props) {+export default function Icon(props: IProps) {const {className,color,@@ -135,7 +135,7 @@ export default function Icon(props: Props) {onKeyPress,onKeyDown,...rest- }: Props = props;+ }: IProps = props;const {color: styleColor,diff --git a/react/features/base/label/components/AbstractLabel.tsx b/react/features/base/label/components/AbstractLabel.tsxdeleted file mode 100644index fe93817526..0000000000--- a/react/features/base/label/components/AbstractLabel.tsx+++ /dev/null@@ -1,21 +0,0 @@-import { Component } from 'react';--export type Props = {-- /**- * An SVG icon to be rendered as the content of the label.- */- icon?: Function;-- /**- * String or component that will be rendered as the label itself.- */- text?: string;-};--/**- * Abstract class for the {@code Label} component.- */-export default class Label<P extends Props, S>- extends Component<P, S> {-}diff --git a/react/features/base/label/components/native/Label.js b/react/features/base/label/components/native/Label.jsindex 8aeeb0155e..772dff2b56 100644--- a/react/features/base/label/components/native/Label.js+++ b/react/features/base/label/components/native/Label.js@@ -1,12 +1,9 @@// @flow-import React from 'react';+import React, { Component } from 'react';import { Animated, Text } from 'react-native';import Icon from '../../../icons/components/Icon';import { type StyleType, combineStyles } from '../../../styles';-import AbstractLabel, {- type Props as AbstractProps-} from '../AbstractLabel';import styles from './styles';@@ -20,7 +17,12 @@ const STATUS_IN_PROGRESS = 'in_progress';*/const STATUS_OFF = 'off';-type Props = AbstractProps & {+type Props = {++ /**+ * An SVG icon to be rendered as the content of the label.+ */+ icon?: Function,/*** Color for the icon.@@ -39,10 +41,16 @@ type Props = AbstractProps & {*/style?: ?StyleType,+ /**+ * String or component that will be rendered as the label itself.+ */+ text?: string,+/*** Custom styles for the text.*/textStyle?: ?StyleType+};type State = {@@ -58,7 +66,7 @@ type State = {* Renders a circular indicator to be used for status icons, such as recording* on, audio-only conference, video quality and similar.*/-export default class Label extends AbstractLabel<Props, State> {+export default class Label extends Component<Props, State> {/*** A reference to the started animation of this label.*/diff --git a/react/features/base/logging/ExternalApiLogTransport.ts b/react/features/base/logging/ExternalApiLogTransport.tsindex a4c70b1f45..5f37f38021 100644--- a/react/features/base/logging/ExternalApiLogTransport.ts+++ b/react/features/base/logging/ExternalApiLogTransport.ts@@ -1,5 +1,3 @@-declare let APP: any;-/*** Constructs a log transport object for use with external API.*diff --git a/react/features/base/logging/middleware.ts b/react/features/base/logging/middleware.tsindex 80bb4f6edc..66d9886d20 100644--- a/react/features/base/logging/middleware.ts+++ b/react/features/base/logging/middleware.ts@@ -19,8 +19,6 @@ import JitsiMeetLogStorage from './JitsiMeetLogStorage';import { SET_LOGGING_CONFIG } from './actionTypes';import { setLogCollector, setLoggingConfig } from './actions';-declare let APP: any;-/*** The Redux middleware of the feature base/logging.*diff --git a/react/features/base/media/subscriber.ts b/react/features/base/media/subscriber.tsindex 524f2d2578..513cd7e147 100644--- a/react/features/base/media/subscriber.ts+++ b/react/features/base/media/subscriber.ts@@ -1,9 +1,6 @@import { IReduxState, IStore } from '../../app/types';import StateListenerRegistry from '../redux/StateListenerRegistry';--declare let APP: any;-/*** Notifies when the local audio mute state changes.*/diff --git a/react/features/base/popover/components/Popover.web.tsx b/react/features/base/popover/components/Popover.web.tsxindex 7c89f81cdc..9f43b938d9 100644--- a/react/features/base/popover/components/Popover.web.tsx+++ b/react/features/base/popover/components/Popover.web.tsx@@ -11,7 +11,7 @@ import { getContextMenuStyle } from '../functions.web';/*** The type of the React {@code Component} props of {@link Popover}.*/-type Props = {+interface IProps {/*** A child React Element to use as the trigger for showing the dialog.@@ -69,12 +69,12 @@ type Props = {* Whether the popover is visible or not.*/visible: boolean;-};+}/*** The type of the React {@code Component} state of {@link Popover}.*/-type State = {+interface IState {/*** The style to apply to the context menu in order to position it correctly.@@ -85,7 +85,7 @@ type State = {position: string;top?: string;} | null;-};+}/*** Implements a React {@code Component} for showing an {@code Popover} on@@ -93,7 +93,7 @@ type State = {** @augments Component*/-class Popover extends Component<Props, State> {+class Popover extends Component<IProps, IState> {/*** Default values for {@code Popover} component's properties.*@@ -118,7 +118,7 @@ class Popover extends Component<Props, State> {* @param {Object} props - The read-only properties with which the new* instance is to be initialized.*/- constructor(props: Props) {+ constructor(props: IProps) {super(props);this.state = {@@ -409,7 +409,7 @@ class Popover extends Component<Props, State> {* @param {Object} state - The Redux state.* @param {Object} ownProps - The own props of the component.* @private- * @returns {Props}+ * @returns {IProps}*/function _mapStateToProps(state: IReduxState) {return {diff --git a/react/features/base/premeeting/components/web/ActionButton.tsx b/react/features/base/premeeting/components/web/ActionButton.tsxindex 3b3df8ba39..498347524b 100644--- a/react/features/base/premeeting/components/web/ActionButton.tsx+++ b/react/features/base/premeeting/components/web/ActionButton.tsx@@ -6,7 +6,7 @@ import Icon from '../../../icons/components/Icon';import { IconArrowDown } from '../../../icons/svg';import { withPixelLineHeight } from '../../../styles/functions.web';-type Props = {+interface IProps {/*** Icon to display in the options section.@@ -78,7 +78,7 @@ type Props = {* The type of th button: primary, secondary, text.*/type: string;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -183,7 +183,7 @@ function ActionButton({ariaPressed,ariaLabel,ariaDropDownLabel-}: Props) {+}: IProps) {const { classes, cx } = useStyles();const onKeyPressHandler = useCallback(e => {diff --git a/react/features/base/tracks/actions.web.ts b/react/features/base/tracks/actions.web.tsindex cdd650b590..6215bf2a18 100644--- a/react/features/base/tracks/actions.web.ts+++ b/react/features/base/tracks/actions.web.ts@@ -38,8 +38,6 @@ import { IShareOptions, IToggleScreenSharingOptions } from './types';export * from './actions.any';-declare const APP: any;-/*** Signals that the local participant is ending screensharing or beginning the screensharing flow.*diff --git a/react/features/base/ui/components/JitsiThemeProvider.web.tsx b/react/features/base/ui/components/JitsiThemeProvider.web.tsxindex 2c91a340fc..64cfd2f7c2 100644--- a/react/features/base/ui/components/JitsiThemeProvider.web.tsx+++ b/react/features/base/ui/components/JitsiThemeProvider.web.tsx@@ -6,7 +6,7 @@ import { IReduxState } from '../../../app/types';import BaseTheme from './BaseTheme.web';-type Props = {+interface IProps {/*** The default theme or theme set through advanced branding.@@ -17,7 +17,7 @@ type Props = {* The children of the component.*/children: React.ReactNode;-};+}/*** The theme provider for the web app.@@ -25,7 +25,7 @@ type Props = {* @param {Object} props - The props of the component.* @returns {React.ReactNode}*/-function JitsiThemeProvider(props: Props) {+function JitsiThemeProvider(props: IProps) {return (<StyledEngineProvider injectFirst = { true }><ThemeProvider theme = { props._theme }>{ props.children }</ThemeProvider>@@ -37,7 +37,7 @@ function JitsiThemeProvider(props: Props) {* Maps part of the Redux state to the props of this component.** @param {Object} state - The Redux state.- * @returns {Props}+ * @returns {IProps}*/function _mapStateToProps(state: IReduxState) {const { muiBrandedTheme } = state['features/dynamic-branding'];diff --git a/react/features/base/ui/components/web/ContextMenu.tsx b/react/features/base/ui/components/web/ContextMenu.tsxindex 15434e8d73..4bddc5936c 100644--- a/react/features/base/ui/components/web/ContextMenu.tsx+++ b/react/features/base/ui/components/web/ContextMenu.tsx@@ -34,7 +34,7 @@ const getComputedOuterHeight = (element: HTMLElement) => {+ getFloatStyleProperty(computedStyle, 'margin-bottom');};-type Props = {+interface IProps {/*** Accessibility label for menu container.@@ -100,7 +100,7 @@ type Props = {* Callback for the mouse leaving the component.*/onMouseLeave?: (e?: React.MouseEvent) => void;-};+}const MAX_HEIGHT = 400;@@ -156,7 +156,7 @@ const ContextMenu = ({onDrawerClose,onMouseEnter,onMouseLeave-}: Props) => {+}: IProps) => {const [ isHidden, setIsHidden ] = useState(true);const containerRef = useRef<HTMLDivElement | null>(null);const { classes: styles, cx } = useStyles();diff --git a/react/features/base/ui/components/web/ContextMenuItem.tsx b/react/features/base/ui/components/web/ContextMenuItem.tsxindex 7a88538f8c..7a451d9a52 100644--- a/react/features/base/ui/components/web/ContextMenuItem.tsx+++ b/react/features/base/ui/components/web/ContextMenuItem.tsx@@ -7,7 +7,7 @@ import { showOverflowDrawer } from '../../../../toolbox/functions.web';import Icon from '../../../icons/components/Icon';import { withPixelLineHeight } from '../../../styles/functions.web';-export type Props = {+export interface IProps {/*** Label used for accessibility.@@ -69,7 +69,7 @@ export type Props = {* Class name for the text.*/textClassName?: string;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -131,7 +131,7 @@ const ContextMenuItem = ({onKeyPress,testId,text,- textClassName }: Props) => {+ textClassName }: IProps) => {const { classes: styles, cx } = useStyles();const _overflowDrawer: boolean = useSelector(showOverflowDrawer);diff --git a/react/features/base/ui/components/web/ContextMenuItemGroup.tsx b/react/features/base/ui/components/web/ContextMenuItemGroup.tsxindex 9f251ec54d..9aa083f32b 100644--- a/react/features/base/ui/components/web/ContextMenuItemGroup.tsx+++ b/react/features/base/ui/components/web/ContextMenuItemGroup.tsx@@ -2,10 +2,10 @@ import { Theme } from '@mui/material';import React, { ReactNode } from 'react';import { makeStyles } from 'tss-react/mui';-import ContextMenuItem, { Props as ItemProps } from './ContextMenuItem';+import ContextMenuItem, { IProps as ItemProps } from './ContextMenuItem';-type Props = {+interface IProps {/*** List of actions in this group.@@ -16,7 +16,7 @@ type Props = {* The children of the component.*/children?: ReactNode;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -43,7 +43,7 @@ const useStyles = makeStyles()((theme: Theme) => {const ContextMenuItemGroup = ({actions,children-}: Props) => {+}: IProps) => {const { classes: styles } = useStyles();return (diff --git a/react/features/base/util/loadScript.web.ts b/react/features/base/util/loadScript.web.tsindex 807b0cfdce..dbdb3755b3 100644--- a/react/features/base/util/loadScript.web.ts+++ b/react/features/base/util/loadScript.web.ts@@ -1,5 +1,3 @@-declare let JitsiMeetJS: any;-/*** Loads a script from a specific URL. The script will be interpreted upon load.*diff --git a/react/features/breakout-rooms/actions.ts b/react/features/breakout-rooms/actions.tsindex 208d71640c..0363d00540 100644--- a/react/features/breakout-rooms/actions.ts+++ b/react/features/breakout-rooms/actions.ts@@ -32,8 +32,6 @@ import {} from './functions';import logger from './logger';-declare let APP: any;-/*** Action to create a breakout room.*diff --git a/react/features/breakout-rooms/middleware.ts b/react/features/breakout-rooms/middleware.tsindex fd40997961..8645c6741c 100644--- a/react/features/breakout-rooms/middleware.ts+++ b/react/features/breakout-rooms/middleware.ts@@ -10,8 +10,6 @@ import { moveToRoom } from './actions';import logger from './logger';import { IRooms } from './types';-declare const APP: any;-/*** Registers a change handler for state['features/base/conference'].conference to* set the event listeners needed for the breakout rooms feature to operate.diff --git a/react/features/chat/components/web/ChatInput.tsx b/react/features/chat/components/web/ChatInput.tsxindex 342a8586c1..9ed67d4c1f 100644--- a/react/features/chat/components/web/ChatInput.tsx+++ b/react/features/chat/components/web/ChatInput.tsx@@ -37,7 +37,7 @@ interface IProps extends WithTranslation {/*** The type of the React {@code Component} state of {@link ChatInput}.*/-type State = {+interface IState {/*** User provided nickname when the input text is provided in the view.@@ -48,14 +48,14 @@ type State = {* Whether or not the smiley selector is visible.*/showSmileysPanel: boolean;-};+}/*** Implements a React Component for drafting and submitting a chat message.** @augments Component*/-class ChatInput extends Component<IProps, State> {+class ChatInput extends Component<IProps, IState> {_textArea?: RefObject<HTMLTextAreaElement>;state = {diff --git a/react/features/chat/components/web/DisplayNameForm.tsx b/react/features/chat/components/web/DisplayNameForm.tsxindex d4118f4fe3..2c2c637da3 100644--- a/react/features/chat/components/web/DisplayNameForm.tsx+++ b/react/features/chat/components/web/DisplayNameForm.tsx@@ -30,20 +30,20 @@ interface IProps extends WithTranslation {/*** The type of the React {@code Component} state of {@DisplayNameForm}.*/-type State = {+interface IState {/*** User provided display name when the input text is provided in the view.*/displayName: string;-};+}/*** React Component for requesting the local participant to set a display name.** @augments Component*/-class DisplayNameForm extends Component<IProps, State> {+class DisplayNameForm extends Component<IProps, IState> {state = {displayName: ''};diff --git a/react/features/chat/components/web/GifMessage.tsx b/react/features/chat/components/web/GifMessage.tsxindex bab8ef9ecf..0d6513e005 100644--- a/react/features/chat/components/web/GifMessage.tsx+++ b/react/features/chat/components/web/GifMessage.tsx@@ -1,13 +1,13 @@import React from 'react';import { makeStyles } from 'tss-react/mui';-type Props = {+interface IProps {/*** URL of the GIF.*/url: string;-};+}const useStyles = makeStyles()(() => {return {@@ -27,7 +27,7 @@ const useStyles = makeStyles()(() => {};});-const GifMessage = ({ url }: Props) => {+const GifMessage = ({ url }: IProps) => {const { classes: styles } = useStyles();return (<div className = { styles.container }>diff --git a/react/features/chat/components/web/TouchmoveHack.tsx b/react/features/chat/components/web/TouchmoveHack.tsxindex 5444d88a3d..4e98544f73 100644--- a/react/features/chat/components/web/TouchmoveHack.tsx+++ b/react/features/chat/components/web/TouchmoveHack.tsx@@ -3,7 +3,7 @@ import { makeStyles } from 'tss-react/mui';import { isMobileBrowser } from '../../../base/environment/utils';-type Props = {+interface IProps {/*** The component(s) that need to be scrollable on mobile.@@ -20,7 +20,7 @@ type Props = {*/isModal: boolean;-};+}const useStyles = makeStyles()(() => {return {@@ -40,7 +40,7 @@ const useStyles = makeStyles()(() => {** @returns {ReactElement}*/-function TouchmoveHack({ children, isModal, flex }: Props) {+function TouchmoveHack({ children, isModal, flex }: IProps) {if (!isModal || !isMobileBrowser()) {return children;}diff --git a/react/features/conference/components/native/carmode/TitleBar.tsx b/react/features/conference/components/native/carmode/TitleBar.tsxindex d3688f001f..90405d1f03 100644--- a/react/features/conference/components/native/carmode/TitleBar.tsx+++ b/react/features/conference/components/native/carmode/TitleBar.tsx@@ -21,7 +21,7 @@ import { VideoQualityLabel } from '../../../../video-quality';import styles from './styles';-type Props = {+interface IProps {/*** Name of the meeting we're currently in.@@ -33,16 +33,16 @@ type Props = {*/_meetingNameEnabled: boolean;-};+}/*** Implements a navigation bar component that is rendered on top of the* carmode screen.*- * @param {Props} props - The React props passed to this component.+ * @param {IProps} props - The React props passed to this component.* @returns {JSX.Element}*/-const TitleBar = (props: Props): JSX.Element => {+const TitleBar = (props: IProps): JSX.Element => {const localParticipant = useSelector(getLocalParticipant);const localParticipantId = localParticipant?.id;@@ -83,7 +83,7 @@ const TitleBar = (props: Props): JSX.Element => {* Maps part of the Redux store to the props of this component.** @param {Object} state - The Redux state.- * @returns {Props}+ * @returns {IProps}*/function _mapStateToProps(state: IReduxState) {const { hideConferenceSubject } = state['features/base/config'];diff --git a/react/features/connection-indicator/components/web/ConnectionIndicator.tsx b/react/features/connection-indicator/components/web/ConnectionIndicator.tsxindex 2155c24228..636a7dbe73 100644--- a/react/features/connection-indicator/components/web/ConnectionIndicator.tsx+++ b/react/features/connection-indicator/components/web/ConnectionIndicator.tsx@@ -146,13 +146,13 @@ type Props = AbstractProps & WithTranslation & {statsPopoverPosition: string;};-type State = AbstractState & {+interface IState extends AbstractState {/*** Whether popover is ivisible or not.*/popoverVisible: boolean;-};+}const styles = (theme: Theme) => {return {@@ -206,7 +206,7 @@ const styles = (theme: Theme) => {** @augments {Component}*/-class ConnectionIndicator extends AbstractConnectionIndicator<Props, State> {+class ConnectionIndicator extends AbstractConnectionIndicator<Props, IState> {/*** Initializes a new {@code ConnectionIndicator} instance.*diff --git a/react/features/desktop-picker/components/DesktopPicker.tsx b/react/features/desktop-picker/components/DesktopPicker.tsxindex cf12508c52..f249352c45 100644--- a/react/features/desktop-picker/components/DesktopPicker.tsx+++ b/react/features/desktop-picker/components/DesktopPicker.tsx@@ -70,7 +70,7 @@ interface IProps extends WithTranslation {/*** The type of the React {@code Component} state of {@link DesktopPicker}.*/-type State = {+interface IState {/*** The state of the audio screen share checkbox.@@ -96,7 +96,7 @@ type State = {* The desktop source types to fetch previews for.*/types: Array<string>;-};+}/**@@ -104,7 +104,7 @@ type State = {** @augments Component*/-class DesktopPicker extends PureComponent<IProps, State> {+class DesktopPicker extends PureComponent<IProps, IState> {/*** Implements React's {@link Component#getDerivedStateFromProps()}.*@@ -130,7 +130,7 @@ class DesktopPicker extends PureComponent<IProps, State> {_poller: any = null;- state: State = {+ state: IState = {screenShareAudio: false,selectedSource: {},selectedTab: 0,diff --git a/react/features/display-name/components/native/DisplayNameLabel.tsx b/react/features/display-name/components/native/DisplayNameLabel.tsxindex 080b162f58..3d625676a8 100644--- a/react/features/display-name/components/native/DisplayNameLabel.tsx+++ b/react/features/display-name/components/native/DisplayNameLabel.tsx@@ -12,7 +12,7 @@ import { connect } from '../../../base/redux/functions';// @ts-ignoreimport styles from './styles';-type Props = {+interface IProps {/*** The name of the participant to render.@@ -33,12 +33,12 @@ type Props = {* The ID of the participant to render the label for.*/participantId: string;-};+}/*** Renders a label with the display name of the on-stage participant.*/-class DisplayNameLabel extends React.Component<Props> {+class DisplayNameLabel extends React.Component<IProps> {/*** Implements {@code Component#render}.*@@ -65,10 +65,10 @@ class DisplayNameLabel extends React.Component<Props> {* Maps part of the Redux state to the props of this component.** @param {any} state - The Redux state.- * @param {Props} ownProps - The own props of the component.- * @returns {Props}+ * @param {IProps} ownProps - The own props of the component.+ * @returns {IProps}*/-function _mapStateToProps(state: IReduxState, ownProps: Partial<Props>) {+function _mapStateToProps(state: IReduxState, ownProps: Partial<IProps>) {const participant = getParticipantById(state, ownProps.participantId ?? '');return {diff --git a/react/features/display-name/components/web/DisplayNamePrompt.tsx b/react/features/display-name/components/web/DisplayNamePrompt.tsxindex 0790e23ad9..1bbd5c6597 100644--- a/react/features/display-name/components/web/DisplayNamePrompt.tsx+++ b/react/features/display-name/components/web/DisplayNamePrompt.tsx@@ -9,13 +9,13 @@ import AbstractDisplayNamePrompt, { IProps } from '../AbstractDisplayNamePrompt'/*** The type of the React {@code Component} props of {@link DisplayNamePrompt}.*/-type State = {+interface IState {/*** The name to show in the display name text field.*/displayName: string;-};+}/*** Implements a React {@code Component} for displaying a dialog with an field@@ -23,7 +23,7 @@ type State = {** @augments Component*/-class DisplayNamePrompt extends AbstractDisplayNamePrompt<State> {+class DisplayNamePrompt extends AbstractDisplayNamePrompt<IState> {/*** Initializes a new {@code DisplayNamePrompt} instance.*diff --git a/react/features/e2ee/components/E2EESection.tsx b/react/features/e2ee/components/E2EESection.tsxindex 36096c62db..3e4d7b3c03 100644--- a/react/features/e2ee/components/E2EESection.tsx+++ b/react/features/e2ee/components/E2EESection.tsx@@ -44,13 +44,13 @@ interface IProps extends WithTranslation {dispatch: IStore['dispatch'];}-type State = {+interface IState {/*** True if the switch is toggled on.*/toggled: boolean;-};+}/*** Implements a React {@code Component} for displaying a security dialog section with a field@@ -58,13 +58,13 @@ type State = {** @augments Component*/-class E2EESection extends Component<IProps, State> {+class E2EESection extends Component<IProps, IState> {/*** Implements React's {@link Component#getDerivedStateFromProps()}.** @inheritdoc*/- static getDerivedStateFromProps(props: IProps, state: State) {+ static getDerivedStateFromProps(props: IProps, state: IState) {if (props._toggled !== state.toggled) {return {diff --git a/react/features/face-landmarks/FaceLandmarksDetector.ts b/react/features/face-landmarks/FaceLandmarksDetector.tsindex 1a44e12667..e22c3c8d4f 100644--- a/react/features/face-landmarks/FaceLandmarksDetector.ts+++ b/react/features/face-landmarks/FaceLandmarksDetector.ts@@ -23,7 +23,6 @@ import {sendFaceExpressionsWebhook} from './functions';import logger from './logger';-declare const APP: any;/*** Class for face language detection.diff --git a/react/features/filmstrip/components/web/Filmstrip.tsx b/react/features/filmstrip/components/web/Filmstrip.tsxindex 054ff19e33..6190f34028 100644--- a/react/features/filmstrip/components/web/Filmstrip.tsx+++ b/react/features/filmstrip/components/web/Filmstrip.tsx@@ -57,8 +57,6 @@ import ThumbnailWrapper from './ThumbnailWrapper';// @ts-ignoreimport { styles } from './styles';-declare let APP: any;-/*** The type of the React {@code Component} props of {@link Filmstrip}.*/@@ -230,7 +228,7 @@ interface IProps extends WithTranslation {filmstripType: string;}-type State = {+interface IState {/*** Initial top panel height on drag handle mouse down.@@ -251,7 +249,7 @@ type State = {* Initial mouse position on drag handle mouse down.*/mousePosition?: number | null;-};+}/*** Implements a React {@link Component} which represents the filmstrip on@@ -259,7 +257,7 @@ type State = {** @augments Component*/-class Filmstrip extends PureComponent <IProps, State> {+class Filmstrip extends PureComponent <IProps, IState> {_throttledResize: Function;diff --git a/react/features/filmstrip/components/web/PinnedIndicator.tsx b/react/features/filmstrip/components/web/PinnedIndicator.tsxindex 4f10eb3b0b..45f7a16a9f 100644--- a/react/features/filmstrip/components/web/PinnedIndicator.tsx+++ b/react/features/filmstrip/components/web/PinnedIndicator.tsx@@ -13,7 +13,7 @@ import { getPinnedActiveParticipants, isStageFilmstripAvailable } from '../../fu/*** The type of the React {@code Component} props of {@link PinnedIndicator}.*/-type Props = {+interface IProps {/*** The font-size for the icon.@@ -30,7 +30,7 @@ type Props = {* From which side of the indicator the tooltip should appear from.*/tooltipPosition: string;-};+}const useStyles = makeStyles()(() => {return {@@ -54,7 +54,7 @@ const PinnedIndicator = ({iconSize,participantId,tooltipPosition-}: Props) => {+}: IProps) => {const stageFilmstrip = useSelector(isStageFilmstripAvailable);const pinned = useSelector((state: IReduxState) => getParticipantById(state, participantId))?.pinned;const activePinnedParticipants: Array<{ participantId: string; pinned: boolean; }>diff --git a/react/features/filmstrip/components/web/RaisedHandIndicator.tsx b/react/features/filmstrip/components/web/RaisedHandIndicator.tsxindex 552153a083..7c4718a3b0 100644--- a/react/features/filmstrip/components/web/RaisedHandIndicator.tsx+++ b/react/features/filmstrip/components/web/RaisedHandIndicator.tsx@@ -12,7 +12,7 @@ import BaseIndicator from '../../../base/react/components/web/BaseIndicator';/*** The type of the React {@code Component} props of {@link RaisedHandIndicator}.*/-type Props = {+interface IProps {/*** The font-size for the icon.@@ -29,7 +29,7 @@ type Props = {* From which side of the indicator the tooltip should appear from.*/tooltipPosition: string;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -53,7 +53,7 @@ const RaisedHandIndicator = ({iconSize,participantId,tooltipPosition-}: Props) => {+}: IProps) => {const participant: IParticipant | undefined = useSelector((state: IReduxState) =>getParticipantById(state, participantId));const _raisedHand = hasRaisedHand(participant);diff --git a/react/features/filmstrip/components/web/Thumbnail.tsx b/react/features/filmstrip/components/web/Thumbnail.tsxindex d0f04a539c..e2836878b0 100644--- a/react/features/filmstrip/components/web/Thumbnail.tsx+++ b/react/features/filmstrip/components/web/Thumbnail.tsx@@ -75,12 +75,10 @@ import ThumbnailTopIndicators from './ThumbnailTopIndicators';// @ts-ignoreimport VirtualScreenshareParticipant from './VirtualScreenshareParticipant';-declare let interfaceConfig: any;-/*** The type of the React {@code Component} state of {@link Thumbnail}.*/-export type State = {+export interface IState {/*** Indicates that the canplay event has been received.@@ -101,12 +99,12 @@ export type State = {* Whether popover is visible or not.*/popoverVisible: boolean;-};+}/*** The type of the React {@code Component} props of {@link Thumbnail}.*/-export type Props = {+export interface IProps {/*** The audio track related to the participant.@@ -277,7 +275,7 @@ export type Props = {* there is empty space.*/width?: number;-};+}const defaultStyles = (theme: Theme) => {return {@@ -384,7 +382,7 @@ const defaultStyles = (theme: Theme) => {** @augments Component*/-class Thumbnail extends Component<Props, State> {+class Thumbnail extends Component<IProps, IState> {/*** The long touch setTimeout handler.*/@@ -402,7 +400,7 @@ class Thumbnail extends Component<Props, State> {* @param {Object} props - The read-only React Component props with which* the new instance is to be initialized.*/- constructor(props: Props) {+ constructor(props: IProps) {super(props);const state = {@@ -487,7 +485,7 @@ class Thumbnail extends Component<Props, State> {* @inheritdoc* @returns {void}*/- componentDidUpdate(prevProps: Props, prevState: State) {+ componentDidUpdate(prevProps: IProps, prevState: IState) {if (prevState.displayMode !== this.state.displayMode) {this._onDisplayModeChanged();}@@ -567,7 +565,7 @@ class Thumbnail extends Component<Props, State> {** @inheritdoc*/- static getDerivedStateFromProps(props: Props, prevState: State) {+ static getDerivedStateFromProps(props: IProps, prevState: IState) {if (!props._videoTrack && prevState.canPlayEventReceived) {const newState = {...prevState,@@ -1168,7 +1166,7 @@ class Thumbnail extends Component<Props, State> {* @param {Object} state - The Redux state.* @param {Object} ownProps - The own props of the component.* @private- * @returns {Props}+ * @returns {IProps}*/function _mapStateToProps(state: IReduxState, ownProps: any): Object {const { participantID, filmstripType = FILMSTRIP_TYPE.MAIN } = ownProps;diff --git a/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx b/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsxindex a68b9d69be..1f2a5ce1e9 100644--- a/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx+++ b/react/features/filmstrip/components/web/ThumbnailBottomIndicators.tsx@@ -17,9 +17,7 @@ import { THUMBNAIL_TYPE } from '../../constants';// @ts-ignoreimport StatusIndicators from './StatusIndicators';-declare let interfaceConfig: any;--type Props = {+interface IProps {/*** Class name for indicators container.@@ -45,7 +43,7 @@ type Props = {* The type of thumbnail.*/thumbnailType: string;-};+}const useStyles = makeStyles()(() => {return {@@ -72,7 +70,7 @@ const ThumbnailBottomIndicators = ({participantId,showStatusIndicators = true,thumbnailType-}: Props) => {+}: IProps) => {const { classes: styles } = useStyles();const _allowEditing = !useSelector(isNameReadOnly);const _defaultLocalDisplayName = interfaceConfig.DEFAULT_LOCAL_DISPLAY_NAME;diff --git a/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx b/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsxindex 267e5787f9..73cc436a70 100644--- a/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx+++ b/react/features/filmstrip/components/web/ThumbnailTopIndicators.tsx@@ -19,9 +19,7 @@ import RaisedHandIndicator from './RaisedHandIndicator';import StatusIndicators from './StatusIndicators';import VideoMenuTriggerButton from './VideoMenuTriggerButton';-declare let interfaceConfig: any;--type Props = {+interface IProps {/*** Whether to hide the connection indicator.@@ -67,7 +65,7 @@ type Props = {* The type of thumbnail.*/thumbnailType: string;-};+}const useStyles = makeStyles()(() => {return {@@ -91,7 +89,7 @@ const ThumbnailTopIndicators = ({popoverVisible,showPopover,thumbnailType-}: Props) => {+}: IProps) => {const { classes: styles, cx } = useStyles();const _isMobile = isMobileBrowser();diff --git a/react/features/filmstrip/components/web/VideoMenuTriggerButton.tsx b/react/features/filmstrip/components/web/VideoMenuTriggerButton.tsxindex 317adbf3d0..503e860271 100644--- a/react/features/filmstrip/components/web/VideoMenuTriggerButton.tsx+++ b/react/features/filmstrip/components/web/VideoMenuTriggerButton.tsx@@ -3,7 +3,7 @@ import React from 'react';import LocalVideoMenuTriggerButton from '../../../video-menu/components/web/LocalVideoMenuTriggerButton';import RemoteVideoMenuTriggerButton from '../../../video-menu/components/web/RemoteVideoMenuTriggerButton';-type Props = {+interface IProps {/*** Hide popover callback.@@ -39,7 +39,7 @@ type Props = {* Whether or not the component is visible.*/visible: boolean;-};+}// eslint-disable-next-line no-confusing-arrowconst VideoMenuTriggerButton = ({@@ -50,7 +50,7 @@ const VideoMenuTriggerButton = ({showPopover,thumbnailType,visible-}: Props) => local+}: IProps) => local? (<span id = 'localvideomenu'><LocalVideoMenuTriggerButtondiff --git a/react/features/lobby/components/web/LobbySection.tsx b/react/features/lobby/components/web/LobbySection.tsxindex 6d1e0ce8dd..88a014acd1 100644--- a/react/features/lobby/components/web/LobbySection.tsx+++ b/react/features/lobby/components/web/LobbySection.tsx@@ -29,18 +29,18 @@ interface IProps extends WithTranslation {dispatch: Function;}-type State = {+interface IState {/*** True if the lobby switch is toggled on.*/lobbyEnabled: boolean;-};+}/*** Implements a security feature section to control lobby mode.*/-class LobbySection extends PureComponent<IProps, State> {+class LobbySection extends PureComponent<IProps, IState> {/*** Instantiates a new component.*@@ -61,7 +61,7 @@ class LobbySection extends PureComponent<IProps, State> {** @inheritdoc*/- static getDerivedStateFromProps(props: IProps, state: State) {+ static getDerivedStateFromProps(props: IProps, state: IState) {if (props._lobbyEnabled !== state.lobbyEnabled) {return {diff --git a/react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsxindex 9b4e120992..b79acc705f 100644--- a/react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsx+++ b/react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsx@@ -16,7 +16,7 @@ import { participantMatchesSearch } from '../../../../functions';import ParticipantActionEllipsis from '../../../web/ParticipantActionEllipsis';import ParticipantItem from '../../../web/ParticipantItem';-type Props = {+interface IProps {/*** Type of trigger for the breakout room actions.@@ -78,7 +78,7 @@ type Props = {* Toggles the room participant context menu.*/toggleParticipantMenu: Function;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -118,7 +118,7 @@ export const CollapsibleRoom = ({room,searchString,toggleParticipantMenu-}: Props) => {+}: IProps) => {const { t } = useTranslation();const { classes: styles, cx } = useStyles();const [ collapsed, setCollapsed ] = useState(false);diff --git a/react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsxindex e8ca1ab655..a0c4adb42f 100644--- a/react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsx+++ b/react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsx@@ -9,7 +9,7 @@ import { sendAnalytics } from '../../../../../analytics/functions';import Button from '../../../../../base/ui/components/web/Button';import { moveToRoom } from '../../../../../breakout-rooms/actions';-type Props = {+interface IProps {/*** The room to join.@@ -18,7 +18,7 @@ type Props = {id: string;jid: string;};-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -28,7 +28,7 @@ const useStyles = makeStyles()((theme: Theme) => {};});-const JoinActionButton = ({ room }: Props) => {+const JoinActionButton = ({ room }: IProps) => {const { classes: styles } = useStyles();const { t } = useTranslation();const dispatch = useDispatch();diff --git a/react/features/participants-pane/components/breakout-rooms/components/web/RoomActionEllipsis.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/RoomActionEllipsis.tsxindex b07c700b77..7d3e43f10a 100644--- a/react/features/participants-pane/components/breakout-rooms/components/web/RoomActionEllipsis.tsx+++ b/react/features/participants-pane/components/breakout-rooms/components/web/RoomActionEllipsis.tsx@@ -4,15 +4,15 @@ import { useTranslation } from 'react-i18next';import { IconHorizontalPoints } from '../../../../../base/icons/svg';import Button from '../../../../../base/ui/components/web/Button';-type Props = {+interface IProps {/*** Click handler function.*/onClick: () => void;-};+}-const RoomActionEllipsis = ({ onClick }: Props) => {+const RoomActionEllipsis = ({ onClick }: IProps) => {const { t } = useTranslation();return (diff --git a/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx b/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsxindex c99fd60446..7f194357a5 100644--- a/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx+++ b/react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx@@ -17,7 +17,7 @@ import SendToRoomButton from '../../../../../video-menu/components/web/SendToRooimport { AVATAR_SIZE } from '../../../../constants';-type Props = {+interface IProps {/*** Room and participant jid reference.@@ -47,7 +47,7 @@ type Props = {* Callback for making a selection in the menu.*/onSelect: (force?: any) => void;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -69,7 +69,7 @@ export const RoomParticipantContextMenu = ({onEnter,onLeave,onSelect-}: Props) => {+}: IProps) => {const { classes: styles } = useStyles();const { t } = useTranslation();const isLocalModerator = useSelector(isLocalParticipantModerator);diff --git a/react/features/participants-pane/components/web/FooterContextMenu.tsx b/react/features/participants-pane/components/web/FooterContextMenu.tsxindex c416373c33..60cb57d354 100644--- a/react/features/participants-pane/components/web/FooterContextMenu.tsx+++ b/react/features/participants-pane/components/web/FooterContextMenu.tsx@@ -68,7 +68,7 @@ const useStyles = makeStyles()((theme: Theme) => {};});-type Props = {+interface IProps {/*** Whether the menu is open.@@ -84,9 +84,9 @@ type Props = {* Callback for the mouse leaving this item.*/onMouseLeave?: (e?: React.MouseEvent) => void;-};+}-export const FooterContextMenu = ({ isOpen, onDrawerClose, onMouseLeave }: Props) => {+export const FooterContextMenu = ({ isOpen, onDrawerClose, onMouseLeave }: IProps) => {const dispatch = useDispatch();const isModerationSupported = useSelector((state: IReduxState) => isAvModerationSupported()(state));const allModerators = useSelector(isEveryoneModerator);diff --git a/react/features/participants-pane/components/web/LobbyParticipantItem.tsx b/react/features/participants-pane/components/web/LobbyParticipantItem.tsxindex c8e0459010..8183b9610f 100644--- a/react/features/participants-pane/components/web/LobbyParticipantItem.tsx+++ b/react/features/participants-pane/components/web/LobbyParticipantItem.tsx@@ -19,7 +19,7 @@ import { useLobbyActions } from '../../hooks';import ParticipantItem from './ParticipantItem';-type Props = {+interface IProps {/*** Callback used to open a drawer with admit/reject actions.@@ -35,7 +35,7 @@ type Props = {* Participant reference.*/participant: IParticipant;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -59,7 +59,7 @@ export const LobbyParticipantItem = ({overflowDrawer,participant: p,openDrawerForParticipant-}: Props) => {+}: IProps) => {const { id } = p;const [ admit, reject, chat ] = useLobbyActions({ participantID: id });const { t } = useTranslation();diff --git a/react/features/participants-pane/components/web/MeetingParticipants.tsx b/react/features/participants-pane/components/web/MeetingParticipants.tsxindex 7989af32ea..a85d213bc6 100644--- a/react/features/participants-pane/components/web/MeetingParticipants.tsx+++ b/react/features/participants-pane/components/web/MeetingParticipants.tsx@@ -53,7 +53,7 @@ const useStyles = makeStyles()((theme: Theme) => {};});-type Props = {+interface IProps {currentRoom?: { name: string; };overflowDrawer?: boolean;participantsCount?: number;@@ -61,7 +61,7 @@ type Props = {setSearchString: (newValue: string) => void;showInviteButton?: boolean;sortedParticipantIds?: Array<string>;-};+}/*** Renders the MeetingParticipantList component.@@ -81,7 +81,7 @@ function MeetingParticipants({setSearchString,showInviteButton,sortedParticipantIds = []-}: Props) {+}: IProps) {const dispatch = useDispatch();const { t } = useTranslation();@@ -158,7 +158,7 @@ function MeetingParticipants({* @param {Object} state - The Redux state.* @param {Object} ownProps - The own props of the component.* @private- * @returns {Props}+ * @returns {IProps}*/function _mapStateToProps(state: IReduxState): Object {let sortedParticipantIds: any = getSortedParticipantIds(state);diff --git a/react/features/participants-pane/components/web/ParticipantActionEllipsis.tsx b/react/features/participants-pane/components/web/ParticipantActionEllipsis.tsxindex 1300d5f4bd..b7f3783bc3 100644--- a/react/features/participants-pane/components/web/ParticipantActionEllipsis.tsx+++ b/react/features/participants-pane/components/web/ParticipantActionEllipsis.tsx@@ -3,7 +3,7 @@ import React from 'react';import { IconHorizontalPoints } from '../../../base/icons/svg';import Button from '../../../base/ui/components/web/Button';-type Props = {+interface IProps {/*** Label used for accessibility.@@ -14,9 +14,9 @@ type Props = {* Click handler function.*/onClick: () => void;-};+}-const ParticipantActionEllipsis = ({ accessibilityLabel, onClick }: Props) => (+const ParticipantActionEllipsis = ({ accessibilityLabel, onClick }: IProps) => (<ButtonaccessibilityLabel = { accessibilityLabel }icon = { IconHorizontalPoints }diff --git a/react/features/participants-pane/components/web/ParticipantQuickAction.tsx b/react/features/participants-pane/components/web/ParticipantQuickAction.tsxindex 5135aef0f2..fc76ea7c65 100644--- a/react/features/participants-pane/components/web/ParticipantQuickAction.tsx+++ b/react/features/participants-pane/components/web/ParticipantQuickAction.tsx@@ -8,7 +8,7 @@ import { approveParticipant } from '../../../av-moderation/actions';import Button from '../../../base/ui/components/web/Button';import { QUICK_ACTION_BUTTON } from '../../constants';-type Props = {+interface IProps {/*** The translated ask unmute aria label.@@ -44,7 +44,7 @@ type Props = {* The name of the participant.*/participantName: string;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -61,7 +61,7 @@ const ParticipantQuickAction = ({muteParticipantButtonText,participantID,participantName-}: Props) => {+}: IProps) => {const { classes: styles } = useStyles();const dispatch = useDispatch();const { t } = useTranslation();diff --git a/react/features/participants-pane/middleware.ts b/react/features/participants-pane/middleware.tsindex bd6dde48f9..d3c5ca9b89 100644--- a/react/features/participants-pane/middleware.ts+++ b/react/features/participants-pane/middleware.ts@@ -2,8 +2,6 @@ import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';import { PARTICIPANTS_PANE_CLOSE, PARTICIPANTS_PANE_OPEN } from './actionTypes';-declare let APP: any;-/*** Middleware which intercepts participants pane actions.*diff --git a/react/features/prejoin/components/web/DropdownButton.tsx b/react/features/prejoin/components/web/DropdownButton.tsxindex 92db46610f..fed643b8de 100644--- a/react/features/prejoin/components/web/DropdownButton.tsx+++ b/react/features/prejoin/components/web/DropdownButton.tsx@@ -4,7 +4,7 @@ import { makeStyles } from 'tss-react/mui';import Icon from '../../../base/icons/components/Icon';-type Props = {+interface IProps {/*** Attribute used in automated testing.@@ -30,7 +30,7 @@ type Props = {* Function to be called on key pressed.*/onKeyPressed: (e?: React.KeyboardEvent) => void;-};+}const useStyles = makeStyles()((theme: Theme) => {@@ -72,7 +72,7 @@ const DropdownButton = ({onButtonClick,onKeyPressed,label-}: Props) => {+}: IProps) => {const { classes } = useStyles();return (diff --git a/react/features/reactions/components/web/ReactionEmoji.tsx b/react/features/reactions/components/web/ReactionEmoji.tsxindex 116136da46..23ef29ae1e 100644--- a/react/features/reactions/components/web/ReactionEmoji.tsx+++ b/react/features/reactions/components/web/ReactionEmoji.tsx@@ -5,7 +5,7 @@ import { IStore } from '../../../app/types';import { removeReaction } from '../../actions.any';import { REACTIONS } from '../../constants';-type Props = {+interface IProps {/*** Index of the reaction in the queue.@@ -26,15 +26,15 @@ type Props = {* Id of the reaction.*/uid: string;-};+}-type State = {+interface IState {/*** Index of CSS animation. Number between 0-20.*/index: number;-};+}/**@@ -42,14 +42,14 @@ type State = {** @returns {ReactElement}*/-class ReactionEmoji extends Component<Props, State> {+class ReactionEmoji extends Component<IProps, IState> {/*** Initializes a new {@code ReactionEmoji} instance.*- * @param {Props} props - The read-only React {@code Component} props with+ * @param {IProps} props - The read-only React {@code Component} props with* which the new instance is to be initialized.*/- constructor(props: Props) {+ constructor(props: IProps) {super(props);this.state = {diff --git a/react/features/recording/components/Recording/web/HighlightButton.tsx b/react/features/recording/components/Recording/web/HighlightButton.tsxindex d240568b08..913565740e 100644--- a/react/features/recording/components/Recording/web/HighlightButton.tsx+++ b/react/features/recording/components/Recording/web/HighlightButton.tsx@@ -39,13 +39,13 @@ type Props = AbstractProps & {/*** The type of the React {@code Component} state of {@link HighlightButton}.*/-type State = {+interface IState {/*** Whether the notification which prompts for starting recording is open is not.*/isNotificationOpen: boolean;-};+}/*** Creates the styles for the component.@@ -94,7 +94,7 @@ const styles = (theme: Theme) => {* React {@code Component} responsible for displaying an action that* allows users to highlight a meeting moment.*/-export class HighlightButton extends AbstractHighlightButton<Props, State> {+export class HighlightButton extends AbstractHighlightButton<Props, IState> {/*** Initializes a new HighlightButton instance.*diff --git a/react/features/salesforce/components/web/RecordItem.tsx b/react/features/salesforce/components/web/RecordItem.tsxindex 6388526519..5734a9233e 100644--- a/react/features/salesforce/components/web/RecordItem.tsx+++ b/react/features/salesforce/components/web/RecordItem.tsx@@ -8,7 +8,7 @@ import { RECORD_TYPE } from '../../constants';/*** The type of the React {@code Component} props of {@link RecordItem}.*/-type Props = {+interface IProps {/*** The id of the record.@@ -29,7 +29,7 @@ type Props = {* The type of the record.*/type: string;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -70,7 +70,7 @@ const useStyles = makeStyles()((theme: Theme) => {/*** Component to render Record data.*- * @param {Props} props - The props of the component.+ * @param {IProps} props - The props of the component.* @returns {React$Element<any>}*/export const RecordItem = ({@@ -79,7 +79,7 @@ export const RecordItem = ({// eslint-disable-next-line @typescript-eslint/no-empty-functiononClick = () => {},type-}: Props) => {+}: IProps) => {const { t } = useTranslation();const Icon = RECORD_TYPE[type as keyof typeof RECORD_TYPE].icon;const { classes } = useStyles();diff --git a/react/features/security/components/security-dialog/web/PasswordForm.tsx b/react/features/security/components/security-dialog/web/PasswordForm.tsxindex c4f37522ac..28603aa0cf 100644--- a/react/features/security/components/security-dialog/web/PasswordForm.tsx+++ b/react/features/security/components/security-dialog/web/PasswordForm.tsx@@ -46,26 +46,26 @@ interface IProps extends WithTranslation {/*** The type of the React {@code Component} state of {@link PasswordForm}.*/-type State = {+interface IState {/*** The value of the password being entered by the local participant.*/enteredPassword: string;-};+}/*** React {@code Component} for displaying and editing the conference password.** @augments Component*/-class PasswordForm extends Component<IProps, State> {+class PasswordForm extends Component<IProps, IState> {/*** Implements React's {@link Component#getDerivedStateFromProps()}.** @inheritdoc*/- static getDerivedStateFromProps(props: IProps, state: State) {+ static getDerivedStateFromProps(props: IProps, state: IState) {return {enteredPassword: props.editEnabled ? state.enteredPassword : ''};diff --git a/react/features/security/components/security-dialog/web/PasswordSection.tsx b/react/features/security/components/security-dialog/web/PasswordSection.tsxindex 6dc2c36273..70f4618b0c 100644--- a/react/features/security/components/security-dialog/web/PasswordSection.tsx+++ b/react/features/security/components/security-dialog/web/PasswordSection.tsx@@ -63,8 +63,6 @@ interface IProps extends WithTranslation {setPasswordEditEnabled: Function;}-declare let APP: any;-/*** Component that handles the password manipulation from the invite dialog.*diff --git a/react/features/security/components/security-dialog/web/SecurityDialog.tsx b/react/features/security/components/security-dialog/web/SecurityDialog.tsxindex 430d64a116..f2210e2b0e 100644--- a/react/features/security/components/security-dialog/web/SecurityDialog.tsx+++ b/react/features/security/components/security-dialog/web/SecurityDialog.tsx@@ -18,7 +18,7 @@ export interface INotifyClick {preventExecution: boolean;}-type Props = {+interface IProps {/*** Toolbar buttons which have their click exposed through the API.@@ -61,7 +61,7 @@ type Props = {* Action that sets the conference password.*/setPassword: Function;-};+}/*** Component that renders the security options dialog.@@ -77,7 +77,7 @@ function SecurityDialog({_passwordNumberOfDigits,_showE2ee,setPassword-}: Props) {+}: IProps) {const [ passwordEditEnabled, setPasswordEditEnabled ] = useState(false);useEffect(() => {@@ -121,7 +121,7 @@ function SecurityDialog({** @param {Object} state - The Redux state.* @private- * @returns {Props}+ * @returns {IProps}*/function mapStateToProps(state: IReduxState) {const {diff --git a/react/features/settings/components/native/HelpView.tsx b/react/features/settings/components/native/HelpView.tsxindex abc192cb74..9e05f20d50 100644--- a/react/features/settings/components/native/HelpView.tsx+++ b/react/features/settings/components/native/HelpView.tsx@@ -19,7 +19,7 @@ import styles from './styles';const DEFAULT_HELP_CENTRE_URL = 'https://web-cdn.jitsi.net/faq/meet-faq.html';-type Props = {+interface IProps {/*** The URL to display in the Help Centre.@@ -30,12 +30,12 @@ type Props = {* Default prop for navigating between screen components(React Navigation).*/navigation: Object;-};+}/*** Implements a page that renders the help content for the app.*/-class HelpView extends PureComponent<Props> {+class HelpView extends PureComponent<IProps> {/*** Implements React's {@link Component#componentDidMount()}. Invoked* immediately after mounting occurs.@@ -79,7 +79,7 @@ class HelpView extends PureComponent<Props> {* Maps part of the Redux state to the props of this component.** @param {Object} state - The Redux state.- * @returns {Props}+ * @returns {IProps}*/function _mapStateToProps(state: IReduxState) {return {diff --git a/react/features/settings/components/native/PrivacyView.tsx b/react/features/settings/components/native/PrivacyView.tsxindex bea0b19ba0..7558fd0fac 100644--- a/react/features/settings/components/native/PrivacyView.tsx+++ b/react/features/settings/components/native/PrivacyView.tsx@@ -15,20 +15,20 @@ import { renderArrowBackButton }import styles from './styles';-type Props = {+interface IProps {/*** Default prop for navigating between screen components(React Navigation).*/navigation: Object;-};+}/*** The URL at which the privacy policy is available to the user.*/const PRIVACY_URL = 'https://jitsi.org/meet/privacy';-const PrivacyView = ({ navigation }: Props) => {+const PrivacyView = ({ navigation }: IProps) => {useEffect(() => {// @ts-ignorediff --git a/react/features/settings/components/native/TermsView.tsx b/react/features/settings/components/native/TermsView.tsxindex eb87f77b12..345c6e9d78 100644--- a/react/features/settings/components/native/TermsView.tsx+++ b/react/features/settings/components/native/TermsView.tsx@@ -15,20 +15,20 @@ import { renderArrowBackButton }import styles from './styles';-type Props = {+interface IProps {/*** Default prop for navigating between screen components(React Navigation).*/navigation: Object;-};+}/*** The URL at which the terms (of service/use) are available to the user.*/const TERMS_URL = 'https://jitsi.org/meet/terms';-const TermsView = ({ navigation }: Props) => {+const TermsView = ({ navigation }: IProps) => {useEffect(() => {// @ts-ignorediff --git a/react/features/settings/components/web/MoreTab.tsx b/react/features/settings/components/web/MoreTab.tsxindex 45a2cc9b1a..ad4b8cc3c4 100644--- a/react/features/settings/components/web/MoreTab.tsx+++ b/react/features/settings/components/web/MoreTab.tsx@@ -4,7 +4,7 @@ import { WithTranslation } from 'react-i18next';// @ts-expect-errorimport keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut';import AbstractDialogTab, {- Props as AbstractDialogTabProps+ IProps as AbstractDialogTabProps} from '../../../base/dialog/components/web/AbstractDialogTab';import { translate } from '../../../base/i18n/functions';import Checkbox from '../../../base/ui/components/web/Checkbox';diff --git a/react/features/settings/components/web/ProfileTab.tsx b/react/features/settings/components/web/ProfileTab.tsxindex 5e8af2042c..9a01c2493f 100644--- a/react/features/settings/components/web/ProfileTab.tsx+++ b/react/features/settings/components/web/ProfileTab.tsx@@ -16,8 +16,6 @@ import Input from '../../../base/ui/components/web/Input';// @ts-ignoreimport { openLogoutDialog } from '../../actions';-declare let APP: any;-/*** The type of the React {@code Component} props of {@link ProfileTab}.*/diff --git a/react/features/settings/components/web/SettingsDialog.tsx b/react/features/settings/components/web/SettingsDialog.tsxindex c7c0f24d60..c23e1052b6 100644--- a/react/features/settings/components/web/SettingsDialog.tsx+++ b/react/features/settings/components/web/SettingsDialog.tsx@@ -41,13 +41,11 @@ import MoreTab from './MoreTab';import ProfileTab from './ProfileTab';import SoundsTab from './SoundsTab';-declare let interfaceConfig: any;-/*** The type of the React {@code Component} props of* {@link ConnectedSettingsDialog}.*/-type Props = {+interface IProps {/*** Information about the tabs to be rendered.@@ -79,7 +77,7 @@ type Props = {* welcome page or not.*/isDisplayedOnWelcomePage: boolean;-};+}/*** Creates the styles for the component.@@ -222,14 +220,14 @@ const styles = (theme: Theme) => {** @augments Component*/-class SettingsDialog extends Component<Props> {+class SettingsDialog extends Component<IProps> {/*** Initializes a new {@code ConnectedSettingsDialog} instance.*- * @param {Props} props - The React {@code Component} props to initialize+ * @param {IProps} props - The React {@code Component} props to initialize* the new {@code ConnectedSettingsDialog} instance with.*/- constructor(props: Props) {+ constructor(props: IProps) {super(props);// Bind event handlers so they are only bound once for every instance.diff --git a/react/features/speaker-stats/components/web/FaceExpressionsSwitch.tsx b/react/features/speaker-stats/components/web/FaceExpressionsSwitch.tsxindex 1150d2d8ce..6efea03bc1 100644--- a/react/features/speaker-stats/components/web/FaceExpressionsSwitch.tsx+++ b/react/features/speaker-stats/components/web/FaceExpressionsSwitch.tsx@@ -23,7 +23,7 @@ const useStyles = makeStyles()((theme: Theme) => {/*** The type of the React {@code Component} props of {@link ToggleFaceExpressionsButton}.*/-type Props = {+interface IProps {/*** The function to initiate the change in the speaker stats table.@@ -35,14 +35,14 @@ type Props = {*/showFaceExpressions: boolean;-};+}/*** React component for toggling face expressions grid.** @returns {React$Element<any>}*/-export default function FaceExpressionsSwitch({ onChange, showFaceExpressions }: Props) {+export default function FaceExpressionsSwitch({ onChange, showFaceExpressions }: IProps) {const { classes } = useStyles();const { t } = useTranslation();diff --git a/react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx b/react/features/speaker-stats/components/web/SpeakerStatsLabels.tsxindex cea50a1ee8..d8ba13a2fa 100644--- a/react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx+++ b/react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx@@ -25,15 +25,15 @@ const useStyles = makeStyles()((theme: Theme) => {/*** The type of the React {@code Component} props of {@link SpeakerStatsLabels}.*/-type Props = {+interface IProps {/*** True if the face expressions detection is not disabled.*/showFaceExpressions: boolean;-};+}-const SpeakerStatsLabels = (props: Props) => {+const SpeakerStatsLabels = (props: IProps) => {const { t } = useTranslation();const { classes } = useStyles();const nameTimeClass = `name-time${diff --git a/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx b/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsxindex f56eeb8e85..6670c4fba9 100644--- a/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx+++ b/react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx@@ -55,21 +55,21 @@ const useStyles = makeStyles()((theme: Theme) => {/*** The type of the React {@code Component} props of {@link SpeakerStatsSearch}.*/-type Props = {+interface IProps {/*** The function to initiate the change in the speaker stats table.*/onSearch: Function;-};+}/*** React component for display an individual user's speaker stats.** @returns {React$Element<any>}*/-function SpeakerStatsSearch({ onSearch }: Props) {+function SpeakerStatsSearch({ onSearch }: IProps) {const { classes, theme } = useStyles();const { t } = useTranslation();const disableSpeakerStatsSearch = useSelector(isSpeakerStatsSearchDisabled);diff --git a/react/features/toolbox/components/web/Drawer.tsx b/react/features/toolbox/components/web/Drawer.tsxindex 7959da1281..2d7e8568c9 100644--- a/react/features/toolbox/components/web/Drawer.tsx+++ b/react/features/toolbox/components/web/Drawer.tsx@@ -5,7 +5,7 @@ import { makeStyles } from 'tss-react/mui';import { DRAWER_MAX_HEIGHT } from '../../constants';-type Props = {+interface IProps {/*** The component(s) to be displayed within the drawer menu.@@ -26,7 +26,7 @@ type Props = {* Function that hides the drawer.*/onClose: Function;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -48,7 +48,7 @@ function Drawer({className = '',isOpen,onClose-}: Props) {+}: IProps) {const { classes: styles } = useStyles();/**diff --git a/react/features/toolbox/components/web/Toolbox.tsx b/react/features/toolbox/components/web/Toolbox.tsxindex 1e36a674f4..23a2490bcf 100644--- a/react/features/toolbox/components/web/Toolbox.tsx+++ b/react/features/toolbox/components/web/Toolbox.tsx@@ -350,8 +350,6 @@ interface IProps extends WithTranslation {toolbarButtons: Array<string>;}-declare let APP: any;-const styles = () => {return {contextMenu: {diff --git a/react/features/toolbox/subscriber.ts b/react/features/toolbox/subscriber.tsindex a44a7ae69a..18504638d3 100644--- a/react/features/toolbox/subscriber.ts+++ b/react/features/toolbox/subscriber.ts@@ -3,8 +3,6 @@ import StateListenerRegistry from '../base/redux/StateListenerRegistry';import { isAudioMuteButtonDisabled } from './functions.any';-declare let APP: any;-/*** Notifies when audio availability changes.*/diff --git a/react/features/video-menu/components/AbstractMuteEveryoneDialog.ts b/react/features/video-menu/components/AbstractMuteEveryoneDialog.tsindex 5bb9e5dd72..1753b0dc95 100644--- a/react/features/video-menu/components/AbstractMuteEveryoneDialog.ts+++ b/react/features/video-menu/components/AbstractMuteEveryoneDialog.ts@@ -26,10 +26,10 @@ export type Props = AbstractProps & WithTranslation & {title: string;};-type State = {+interface IState {audioModerationEnabled: boolean;content: string;-};+}/***@@ -38,7 +38,8 @@ type State = {** @augments AbstractMuteRemoteParticipantDialog*/-export default class AbstractMuteEveryoneDialog<P extends Props> extends AbstractMuteRemoteParticipantDialog<P, State> {+export default class AbstractMuteEveryoneDialog<P extends Props> extends+ AbstractMuteRemoteParticipantDialog<P, IState> {static defaultProps = {exclude: [],muteLocal: falsediff --git a/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.ts b/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.tsindex 7357c56ad1..c8ebe74f8a 100644--- a/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.ts+++ b/react/features/video-menu/components/AbstractMuteEveryonesVideoDialog.ts@@ -26,10 +26,10 @@ export type Props = AbstractProps & WithTranslation & {title: string;};-type State = {+interface IState {content: string;moderationEnabled: boolean;-};+}/***@@ -39,7 +39,7 @@ type State = {* @augments AbstractMuteRemoteParticipantsVideoDialog*/export default class AbstractMuteEveryonesVideoDialog<P extends Props>- extends AbstractMuteRemoteParticipantsVideoDialog<P, State> {+ extends AbstractMuteRemoteParticipantsVideoDialog<P, IState> {static defaultProps = {exclude: [],muteLocal: falsediff --git a/react/features/video-menu/components/web/FakeParticipantContextMenu.tsx b/react/features/video-menu/components/web/FakeParticipantContextMenu.tsxindex 9550418e2d..6ecb506515 100644--- a/react/features/video-menu/components/web/FakeParticipantContextMenu.tsx+++ b/react/features/video-menu/components/web/FakeParticipantContextMenu.tsx@@ -19,7 +19,7 @@ import { showOverflowDrawer } from '../../../toolbox/functions.web';import { setWhiteboardOpen } from '../../../whiteboard/actions';import { WHITEBOARD_ID } from '../../../whiteboard/constants';-type Props = {+interface IProps {/*** Class name for the context menu.@@ -74,7 +74,7 @@ type Props = {* Whether or not the menu is displayed in the thumbnail remote video menu.*/thumbnailMenu?: boolean;-};+}const FakeParticipantContextMenu = ({className,@@ -87,7 +87,7 @@ const FakeParticipantContextMenu = ({onSelect,participant,thumbnailMenu-}: Props) => {+}: IProps) => {const dispatch = useDispatch();const { t } = useTranslation();const _overflowDrawer: boolean = useSelector(showOverflowDrawer);diff --git a/react/features/video-menu/components/web/ParticipantContextMenu.tsx b/react/features/video-menu/components/web/ParticipantContextMenu.tsxindex 6cae6eb188..c6e8a8c214 100644--- a/react/features/video-menu/components/web/ParticipantContextMenu.tsx+++ b/react/features/video-menu/components/web/ParticipantContextMenu.tsx@@ -49,7 +49,7 @@ import {// @ts-ignore} from './';-type Props = {+interface IProps {/*** Class name for the context menu.@@ -104,7 +104,7 @@ type Props = {* Whether or not the menu is displayed in the thumbnail remote video menu.*/thumbnailMenu?: boolean;-};+}const useStyles = makeStyles()((theme: Theme) => {return {@@ -131,7 +131,7 @@ const ParticipantContextMenu = ({participant,remoteControlState,thumbnailMenu-}: Props) => {+}: IProps) => {const dispatch = useDispatch();const { t } = useTranslation();const { classes: styles } = useStyles();diff --git a/react/features/video-menu/components/web/VolumeSlider.tsx b/react/features/video-menu/components/web/VolumeSlider.tsxindex 744f2191c9..0c71bb0470 100644--- a/react/features/video-menu/components/web/VolumeSlider.tsx+++ b/react/features/video-menu/components/web/VolumeSlider.tsx@@ -35,14 +35,14 @@ interface IProps extends WithTranslation {/*** The type of the React {@code Component} state of {@link VolumeSlider}.*/-type State = {+interface IState {/*** The volume of the participant's audio element. The value will* be represented by a slider.*/volumeLevel: number;-};+}const styles = (theme: Theme) => {return {@@ -88,7 +88,7 @@ const styles = (theme: Theme) => {** @augments Component*/-class VolumeSlider extends Component<IProps, State> {+class VolumeSlider extends Component<IProps, IState> {/*** Initializes a new {@code VolumeSlider} instance.*diff --git a/react/features/video-quality/components/Slider.web.tsx b/react/features/video-quality/components/Slider.web.tsxindex a986329172..1eda90e4b4 100644--- a/react/features/video-quality/components/Slider.web.tsx+++ b/react/features/video-quality/components/Slider.web.tsx@@ -2,7 +2,7 @@ import { Theme } from '@mui/material';import React from 'react';import { makeStyles } from 'tss-react/mui';-type Props = {+interface IProps {/*** The 'aria-label' text.@@ -33,7 +33,7 @@ type Props = {* The current value where the knob is positioned.*/value: number;-};+}const useStyles = makeStyles()((theme: Theme) => {// keep the same height for all elements:@@ -138,7 +138,7 @@ const useStyles = makeStyles()((theme: Theme) => {** @returns {ReactElement}*/-function Slider({ ariaLabel, max, min, onChange, step, value }: Props) {+function Slider({ ariaLabel, max, min, onChange, step, value }: IProps) {const { classes, cx } = useStyles();const knobs = [ ...Array(Math.floor((max - min) / step) + 1) ];diff --git a/react/features/virtual-background/components/VirtualBackgroundPreview.tsx b/react/features/virtual-background/components/VirtualBackgroundPreview.tsxindex acd615a753..9dffea444f 100644--- a/react/features/virtual-background/components/VirtualBackgroundPreview.tsx+++ b/react/features/virtual-background/components/VirtualBackgroundPreview.tsx@@ -24,7 +24,7 @@ const videoClassName = 'video-preview-video';/*** The type of the React {@code PureComponent} props of {@link VirtualBackgroundPreview}.*/-export type Props = WithTranslation & {+export interface IProps extends WithTranslation {/*** The deviceId of the camera device currently being used.@@ -50,12 +50,12 @@ export type Props = WithTranslation & {* Represents the virtual background set options.*/options: any;-};+}/*** The type of the React {@code Component} state of {@link VirtualBackgroundPreview}.*/-type State = {+interface IState {/*** Activate the selected device camera only.@@ -71,7 +71,7 @@ type State = {* Flag that indicates if the local track was loaded.*/localTrackLoaded: boolean;-};+}/*** Creates the styles for the component.@@ -127,7 +127,7 @@ const styles = (theme: Theme) => {** @augments PureComponent*/-class VirtualBackgroundPreview extends PureComponent<Props, State> {+class VirtualBackgroundPreview extends PureComponent<IProps, IState> {_componentWasUnmounted: boolean;/**@@ -136,7 +136,7 @@ class VirtualBackgroundPreview extends PureComponent<Props, State> {* @param {Object} props - The read-only properties with which the new* instance is to be initialized.*/- constructor(props: Props) {+ constructor(props: IProps) {super(props);this.state = {@@ -290,7 +290,7 @@ class VirtualBackgroundPreview extends PureComponent<Props, State> {** @inheritdoc*/- async componentDidUpdate(prevProps: Props) {+ async componentDidUpdate(prevProps: IProps) {if (!equals(this.props._currentCameraDeviceId, prevProps._currentCameraDeviceId)) {this._setTracks();}diff --git a/react/features/whiteboard/components/web/Whiteboard.tsx b/react/features/whiteboard/components/web/Whiteboard.tsxindex e243c3fa83..433eba6afd 100644--- a/react/features/whiteboard/components/web/Whiteboard.tsx+++ b/react/features/whiteboard/components/web/Whiteboard.tsx@@ -26,8 +26,6 @@ import {*/const HEIGHT_OFFSET = 80;-declare const interfaceConfig: any;-interface IDimensions {/* The height of the component. */