interface extends as appropriate (#4067)
This commit is contained in:
parent
b7bc009040
commit
754dc574e0
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user