From 146a0367644841fe65d9bc176f2b1556579a487c Mon Sep 17 00:00:00 2001 From: Ed Staub Date: Wed, 27 Sep 2017 14:46:24 -0400 Subject: [PATCH] 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 --- types/material-ui/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 461e7bf368..0f886aa91f 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -673,6 +673,7 @@ declare namespace __MaterialUI { size?: number; src?: string; style?: React.CSSProperties; + onClick?: React.MouseEventHandler<{}>; } export class Avatar extends React.Component { } @@ -951,7 +952,8 @@ declare namespace __MaterialUI { onRequestDelete?: React.TouchEventHandler; onTouchTap?: React.TouchEventHandler; style?: React.CSSProperties; - } + onClick?: React.MouseEventHandler<{}>; +} export class Chip extends React.Component { }