mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-09 22:40:18 +08:00
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:
4
types/material-ui/index.d.ts
vendored
4
types/material-ui/index.d.ts
vendored
@@ -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> {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user