diff --git a/packages/material-ui/src/CardMedia/CardMedia.d.ts b/packages/material-ui/src/CardMedia/CardMedia.d.ts index 70ebe52e0f0b27..8a3f294700ce2c 100644 --- a/packages/material-ui/src/CardMedia/CardMedia.d.ts +++ b/packages/material-ui/src/CardMedia/CardMedia.d.ts @@ -1,15 +1,22 @@ import * as React from 'react'; -import { StandardProps } from '..'; +import { OverridableComponent, OverrideProps } from '../OverridableComponent'; -export interface CardMediaProps - extends StandardProps, CardMediaClassKey> { - component?: React.ElementType; - image?: string; - src?: string; +interface CardMediaTypeMap { + props: P & { + image?: string; + src?: string; + }; + defaultComponent: D; + classKey: CardMediaClassKey; } +declare const CardMedia: OverridableComponent>; + export type CardMediaClassKey = 'root' | 'media'; -declare const CardMedia: React.ComponentType; +export type CardMediaProps = OverrideProps< + CardMediaTypeMap, + D +>; export default CardMedia;