File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,15 @@ export interface MessageProps extends HTMLAttributesWeak, CommonProps {
69
69
animation ?: boolean ;
70
70
}
71
71
72
+ type OpenProps = string | React . ReactElement | MessageProps ;
73
+
72
74
export default class Message extends React . Component < MessageProps , any > {
73
- static show ( props : { } ) : void ;
75
+ static show ( props : OpenProps ) : void ;
74
76
static hide ( ) : void ;
75
- static success ( props : { } ) : void ;
76
- static warning ( props : { } ) : void ;
77
- static error ( props : { } ) : void ;
78
- static help ( props : { } ) : void ;
79
- static loading ( props : { } ) : void ;
80
- static notice ( props : { } ) : void ;
77
+ static success ( props : OpenProps ) : void ;
78
+ static warning ( props : OpenProps ) : void ;
79
+ static error ( props : OpenProps ) : void ;
80
+ static help ( props : OpenProps ) : void ;
81
+ static loading ( props : OpenProps ) : void ;
82
+ static notice ( props : OpenProps ) : void ;
81
83
}
You can’t perform that action at this time.
0 commit comments