Skip to content

Commit 5fb7f31

Browse files
committed
chore: Fix TS definition used in antd
1 parent 128178e commit 5fb7f31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Notification.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ class Notification extends Component<NotificationProps, NotificationState> {
7979
notices: [],
8080
};
8181

82-
private hookRefs = new Map<React.Key, HTMLDivElement>();
82+
/**
83+
* @private Internal props do not call it directly.
84+
* We do not make this as private is caused TS will trade private as
85+
* different prop that between es and lib
86+
*/
87+
hookRefs = new Map<React.Key, HTMLDivElement>();
8388

8489
getTransitionName() {
8590
const { prefixCls, animation } = this.props;

0 commit comments

Comments
 (0)