mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Updated material-ui.d.ts (#8881)
Added DOMAttributes to FlatButton and Dialog properties.
This commit is contained in:
committed by
Masahiro Wakame
parent
f82347d1cb
commit
5ef5579fae
4
material-ui/material-ui.d.ts
vendored
4
material-ui/material-ui.d.ts
vendored
@@ -576,7 +576,7 @@ declare namespace __MaterialUI {
|
||||
export class EnhancedButton extends React.Component<EnhancedButtonProps, {}> {
|
||||
}
|
||||
|
||||
interface FlatButtonProps extends SharedEnhancedButtonProps<FlatButton> {
|
||||
interface FlatButtonProps extends React.DOMAttributes, SharedEnhancedButtonProps<FlatButton> {
|
||||
// <EnhancedButton/> is the element that get the 'other' properties
|
||||
backgroundColor?: string;
|
||||
disabled?: boolean;
|
||||
@@ -843,7 +843,7 @@ declare namespace __MaterialUI {
|
||||
ref?: string;
|
||||
text: string;
|
||||
}
|
||||
interface DialogProps extends React.Props<Dialog> {
|
||||
interface DialogProps extends React.DOMAttributes, React.Props<Dialog> {
|
||||
/** @deprecated use a custom `actions` property instead */
|
||||
actionFocus?: string;
|
||||
actions?: Array<DialogAction | React.ReactElement<any>>;
|
||||
|
||||
Reference in New Issue
Block a user