Improve typing

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-20 12:16:17 +02:00
parent 93ab4dc787
commit 48949af961
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D
3 changed files with 18 additions and 17 deletions

View file

@ -19,12 +19,13 @@ import React, { createRef } from 'react';
import * as sdk from '../../../index';
import classNames from 'classnames';
import { replaceableComponent } from "../../../utils/replaceableComponent";
import { IUserAddress } from '../../../UserAddress';
interface IProps {
onSelected: (index: number) => void;
// List of the addresses to display
addressList; // FIXME: UserAddressType should be an interface
addressList: IUserAddress[];
// Whether to show the address on the address tiles
showAddress?: boolean;
truncateAt: number;

View file

@ -21,9 +21,10 @@ import * as sdk from "../../../index";
import { _t } from '../../../languageHandler';
import { replaceableComponent } from "../../../utils/replaceableComponent";
import { mediaFromMxc } from "../../../customisations/Media";
import { IUserAddress } from '../../../UserAddress';
interface IProps {
address; // FIXME: UserAddressType should be an interface
address: IUserAddress;
canDismiss?: boolean;
onDismissed?: () => void;
justified?: boolean;