Upgrade @types (#9261)

* Upgrade @types

* Make typescript happier
This commit is contained in:
Michael Telatynski 2022-09-12 11:58:05 +01:00 committed by GitHub
parent a9f04514fb
commit 0ab476b828
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 36 deletions

View file

@ -18,7 +18,7 @@ limitations under the License.
*/
import url from 'url';
import React, { ContextType, createRef, MutableRefObject } from 'react';
import React, { ContextType, createRef, MutableRefObject, ReactNode } from 'react';
import classNames from 'classnames';
import { MatrixCapabilities } from "matrix-widget-api";
import { Room, RoomEvent } from "matrix-js-sdk/src/models/room";
@ -666,7 +666,7 @@ export default class AppTile extends React.Component<IProps, IState> {
);
}
const layoutButtons: React.ReactNodeArray = [];
const layoutButtons: ReactNode[] = [];
if (this.props.showLayoutButtons) {
const isMaximised = WidgetLayoutStore.instance.
isInContainer(this.props.room, this.props.app, Container.Center);