mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
Fix type definition for Card Component. (#7196)
React.Component requires two parameters. The second parameter (State) is now optional in a more recent version of @types/react however upgrading to this has several major/breaking changes elsewhere. I would prefer to explicitly define State as `{}` in this case.
This commit is contained in:
parent
e92ef95f74
commit
293d63910a
@ -18,7 +18,7 @@ export interface CardProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default class Card extends Component<CardProps> {
|
||||
export default class Card extends Component<CardProps, {}> {
|
||||
static Grid: typeof Grid = Grid;
|
||||
container: HTMLDivElement;
|
||||
resizeEvent: any;
|
||||
|
Loading…
Reference in New Issue
Block a user