Add onClick to Avatar, Chip (#20079)

* Add onClick to Avatar

This superficially addresses https://github.com/DefinitelyTyped/DefinitelyTyped/issues/19988, which should probably be closed when this is pulled, for lack of interest.

* Added onClick to ChipProps
This commit is contained in:
Ed Staub
2017-09-27 14:46:24 -04:00
committed by Mohamed Hegazy
parent e1ab501c77
commit 146a036764

View File

@@ -673,6 +673,7 @@ declare namespace __MaterialUI {
size?: number;
src?: string;
style?: React.CSSProperties;
onClick?: React.MouseEventHandler<{}>;
}
export class Avatar extends React.Component<AvatarProps> {
}
@@ -951,7 +952,8 @@ declare namespace __MaterialUI {
onRequestDelete?: React.TouchEventHandler<Chip>;
onTouchTap?: React.TouchEventHandler<Chip>;
style?: React.CSSProperties;
}
onClick?: React.MouseEventHandler<{}>;
}
export class Chip extends React.Component<ChipProps> {
}