interface extends as appropriate (#4067)

This commit is contained in:
Jaco Greeff 2020-11-25 12:14:50 +01:00 committed by GitHub
parent b7bc009040
commit 754dc574e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -13,9 +13,9 @@ import AssetCard from './AssetCard';
import CreateModal from './modals/Create';
import translate from './translate';
type Props = I18nProps & {
interface Props extends I18nProps {
assets?: AssetsSubjectInfo;
};
}
function Assets ({ assets, t }: Props): React.ReactElement<Props> {
const [isCreateOpen, setIsCreateOpen] = useState(false);

View File

@ -55,11 +55,11 @@ export interface CallState {
export type CallProps = ApiProps & CallState;
export type BaseProps<T> = BareProps & CallProps & ChangeProps & {
export interface BaseProps<T> extends BareProps, CallProps, ChangeProps {
children?: React.ReactNode;
label?: string;
render?: (value?: T) => React.ReactNode;
};
}
export type Formatter = (value?: any) => string;