type: add React.ReactNode (#38404)

This commit is contained in:
咩咩 2022-11-05 21:34:20 +08:00 committed by GitHub
parent 66e4b1c91c
commit 45b078a1ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ import useRemovePasswordTimeout from './hooks/useRemovePasswordTimeout';
import type { InputProps, InputRef } from './Input';
import Input from './Input';
const defaultIconRender = (visible: boolean) =>
const defaultIconRender = (visible: boolean): React.ReactNode =>
visible ? <EyeOutlined /> : <EyeInvisibleOutlined />;
type VisibilityToggle = {