diff --git a/components/notification/PurePanel.tsx b/components/notification/PurePanel.tsx
index 56ac224482..9e959f1b5d 100644
--- a/components/notification/PurePanel.tsx
+++ b/components/notification/PurePanel.tsx
@@ -20,7 +20,7 @@ export const TypeIcon = {
loading: ,
};
-export function getCloseIcon(prefixCls: string, closeIcon?: React.ReactNode) {
+export function getCloseIcon(prefixCls: string, closeIcon?: React.ReactNode): React.ReactNode {
return (
closeIcon || (