Skip to content

Commit

Permalink
fix: fix ComponentPropsWithRef type function failed with Button (#1552)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal committed Apr 19, 2023
1 parent 452763c commit 2f28e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/semi-ui/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Button extends React.PureComponent<ButtonProps> {
...IconButton.propTypes,
};
static elementType: string;
constructor(props = {}) {
constructor(props: ButtonProps = {}) {
super(props);
}
render() {
Expand Down

0 comments on commit 2f28e39

Please sign in to comment.